[PATCH 1/5] Cleanup: Set a meaning value for KDUMP_SUB_HEADER_BLOCKS.
Ken'ichi Ohmichi
oomichi at mxs.nes.nec.co.jp
Tue Oct 13 01:19:28 EDT 2009
[PATCH 1/5] Cleanup: Set a meaning value for KDUMP_SUB_HEADER_BLOCKS.
Signed-off-by: Ken'ichi Ohmichi <oomichi at mxs.nes.nec.co.jp>
---
diff -rpuN a/diskdump_mod.h b/diskdump_mod.h
--- a/diskdump_mod.h 2009-10-09 10:51:18.000000000 +0900
+++ b/diskdump_mod.h 2009-10-13 11:02:05.000000000 +0900
@@ -25,7 +25,6 @@
#define KDUMP_SIGNATURE "KDUMP "
#define SIG_LEN (sizeof(DUMP_PARTITION_SIGNATURE) - 1)
#define DISKDUMP_HDADER_BLOCKS (1)
-#define KDUMP_SUB_HEADER_BLOCKS (1)
#define DUMP_HEADER_COMPLETED 0
#define DUMP_HEADER_INCOMPLETED 1
diff -rpuN a/makedumpfile.c b/makedumpfile.c
--- a/makedumpfile.c 2009-10-09 10:51:18.000000000 +0900
+++ b/makedumpfile.c 2009-10-13 11:06:25.000000000 +0900
@@ -5450,7 +5450,7 @@ write_kdump_header(void)
strcpy(dh->signature, KDUMP_SIGNATURE);
dh->header_version = 2;
dh->block_size = info->page_size;
- dh->sub_hdr_size = KDUMP_SUB_HEADER_BLOCKS;
+ dh->sub_hdr_size = divideup(sizeof(sub_dump_header), dh->block_size);
dh->max_mapnr = info->max_mapnr;
dh->nr_cpus = 1;
dh->bitmap_blocks
More information about the kexec
mailing list