[Patch] makedumpfile: support -F option on xen

Akio Takebe takebe_akio at jp.fujitsu.com
Tue Jan 29 08:20:11 EST 2008


Hi,

makdumpfile doesn't support -F option on xen.
The following patch support it.

Signed-off-by: Akio Takebe <takebe_akio at jp.fujitsu.com>

Best Regards,

Akio Takebe

--- makedumpfile/makedumpfile.c.orig	2007-11-14 20:34:36.000000000 +0900
+++ makedumpfile/makedumpfile.c	2008-01-28 13:50:34.000000000 +0900
@@ -5803,12 +5803,22 @@ handle_xen()
 	if (!create_dump_bitmap_xen())
 		goto out;
 
+	if (info->flag_flatten) {
+		if (!write_start_flat_header())
+			goto out;
+	}
+
 	if (!write_elf_header())
 		goto out;
 
 	if (!write_elf_pages())
 		goto out;
 
+	if (info->flag_flatten) {
+		if (!write_end_flat_header())
+			goto out;
+	}
+
 	if (!close_files_for_creating_dumpfile())
 		goto out;
 




More information about the kexec mailing list