Skip to contentSkip to conversation

makedumpfile: implementation of dealing with kdump-compressed dumpfile with ENOSPC error

PATCH Superseded Wang, Xiao/Wang Xiao 1 participant 1 message Sep 19, 2014

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 makedumpfile: implementation of dealing with kdump-compressed dumpfile with ENOSPC error

kdump-compressed:
Dump the bitmap before any page header and page data. This format use "status" of "disk_dump_header" to indicate that it has been modified.

---
 diskdump_mod.h |    2 +
 makedumpfile.c |   85 
++++++++++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 82 insertions(+), 5 deletions(-)
diskdump_mod.h +2 -0
index dd24eb2..a0d3439 100644
@@ -96,6 +96,8 @@ struct kdump_sub_header {
 #define DUMP_DH_COMPRESSED_SNAPPY	0x4
 					/* paged is compressed with snappy */
 
+#define DUMP_DH_COMPRESSED_INCOMPLETE	0x8 /* this is an incomplete dumpfile*/
+
 /* descriptor of each page for vmcore */
 typedef struct page_desc {
 	off_t			offset;		/* the offset of the page data*/
makedumpfile.c +80 -5

115 lines not on this page · raw message

Signature · 7 lines
1.7.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec