mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdump: Move and rename DF_S390_DUMPER_SIZE constants
Move DF_S390_DUMPER_SIZE_* constants from zdump/df_s390.h to boot/loaders_layout.h since ccw dumper size depends on the zipl boot loader layout (to keep it all in one place). Rename DF_S390_DUMPER_SIZE_* constants to STAGE2_DUMPER_SIZE_* Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com> Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
1a850392bc
commit
fda1e0d33d
+4
-4
@@ -155,16 +155,16 @@ void df_s390_dumper_read(struct zg_fh *fh, int blk_size,
|
||||
case 1:
|
||||
if (strncmp(dumper->magic, DF_S390_DUMPER_MAGIC_EXT, 7) == 0 ||
|
||||
strncmp(dumper->magic, DF_S390_DUMPER_MAGIC_MV_EXT, 7) == 0)
|
||||
dumper->size = DF_S390_DUMPER_SIZE_V3;
|
||||
dumper->size = STAGE2_DUMPER_SIZE_V3;
|
||||
else
|
||||
dumper->size = DF_S390_DUMPER_SIZE_V1;
|
||||
dumper->size = STAGE2_DUMPER_SIZE_V1;
|
||||
break;
|
||||
case 2:
|
||||
dumper->size = DF_S390_DUMPER_SIZE_V2;
|
||||
dumper->size = STAGE2_DUMPER_SIZE_V2;
|
||||
break;
|
||||
case 3:
|
||||
default:
|
||||
dumper->size = DF_S390_DUMPER_SIZE_V3;
|
||||
dumper->size = STAGE2_DUMPER_SIZE_V3;
|
||||
}
|
||||
/* Read force and mem fields in the end of the dumper */
|
||||
bytes_to_read = sizeof(dumper->force) + sizeof(dumper->mem);
|
||||
|
||||
Reference in New Issue
Block a user