[PATCH] Allow --dump-dmesg for Xen vmcores

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If a Xen dump is detected, makedumpfile checks that the target format is
ELF. The real reason is that compressed formats are not possible with Xen.

But there's a third way initial_xen() can be called: with --dump-dmesg.
This variant works in fact, so it's enough to extend the check so that
it covers this case.

Signed-off-by: Petr Tesarik <ptesarik at suse.cz>
---
 makedumpfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/makedumpfile.c b/makedumpfile.c
index 0bd8b55..ea29239 100644
--- a/makedumpfile.c
+++ b/makedumpfile.c
@@ -7660,7 +7660,7 @@ initial_xen(void)
 	MSG("Xen is not supported on powerpc.\n");
 	return FALSE;
 #else
-	if(!info->flag_elf_dumpfile) {
+	if(!info->flag_elf_dumpfile && !info->flag_dmesg) {
 		MSG("Specify '-E' option for Xen.\n");
 		MSG("Commandline parameter is invalid.\n");
 		MSG("Try `makedumpfile --help' for more information.\n");
-- 
1.8.4.5



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux