[PATCH 4/8] Notify snappy unsupporting when disabled
HATAYAMA Daisuke
d.hatayama at jp.fujitsu.com
Mon Jul 2 23:07:48 EDT 2012
Signed-off-by: HATAYAMA Daisuke <d.hatayama at jp.fujitsu.com>
---
makedumpfile.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/makedumpfile.c b/makedumpfile.c
index 14fd9f6..a47a3ec 100644
--- a/makedumpfile.c
+++ b/makedumpfile.c
@@ -2538,6 +2538,15 @@ initial(void)
}
#endif
+#ifndef USESNAPPY
+ if (info->flag_compress == DUMP_DH_COMPRESSED_SNAPPY) {
+ MSG("'-p' option is disabled, ");
+ MSG("because this binary doesn't support snappy "
+ "compression.\n");
+ MSG("Try `make USESNAPPY=on` when building.\n");
+ }
+#endif
+
if (!is_xen_memory() && info->flag_exclude_xen_dom) {
MSG("'-X' option is disable,");
MSG("because %s is not Xen's memory core image.\n", info->name_memory);
More information about the kexec
mailing list