[PATCH 5/5] Read vmcoreinfo data from a kdump-compressed dumpfile.
Ken'ichi Ohmichi
oomichi at mxs.nes.nec.co.jp
Tue Oct 13 01:20:50 EDT 2009
[PATCH 5/5] Read vmcoreinfo data from a kdump-compressed dumpfile.
makedumpfile takes the data from a dumpfile in the kdump-compressed
format and uses the data for re-filtering.
Signed-off-by: Ken'ichi Ohmichi <oomichi at mxs.nes.nec.co.jp>
---
diff -rpuN a/makedumpfile.c b/makedumpfile.c
--- a/makedumpfile.c 2009-10-13 12:35:06.000000000 +0900
+++ b/makedumpfile.c 2009-10-13 12:34:44.000000000 +0900
@@ -871,6 +871,11 @@ get_kdump_compressed_header_info(char *f
}
memcpy(info->kh_memory, &kh, sizeof(kh));
+ if (dh.header_version >= 3) {
+ /* A dumpfile contains vmcoreinfo data. */
+ info->offset_vmcoreinfo = kh.offset_vmcoreinfo;
+ info->size_vmcoreinfo = kh.size_vmcoreinfo;
+ }
return TRUE;
error:
free(info->dh_memory);
More information about the kexec
mailing list