[PATCH v3 1/3] open_dump_bitmap: open bitmap file in non-cyclic case

Atsushi Kumagai ats-kumagai at wm.jp.nec.com
Tue Sep 20 23:29:34 PDT 2016


Hello Martin,

>The logic of set_bitmap() requires that a bitmap fd exists in the
>non-cyclic case.
>
>Signed-off-by: Martin Wilck <mwilck at suse.de>

I'll merge this version into v1.6.1, thanks for your work.

Regards,
Atsushi Kumagai

>---
> makedumpfile.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/makedumpfile.c b/makedumpfile.c
>index d168dfd..6164468 100644
>--- a/makedumpfile.c
>+++ b/makedumpfile.c
>@@ -1365,7 +1365,7 @@ open_dump_bitmap(void)
>
> 	/* Unnecessary to open */
> 	if (!info->working_dir && !info->flag_reassemble && !info->flag_refiltering
>-	    && !info->flag_sadump && !info->flag_mem_usage)
>+	    && !info->flag_sadump && !info->flag_mem_usage && info->flag_cyclic)
> 		return TRUE;
>
> 	tmpname = getenv("TMPDIR");
>--
>2.9.3




More information about the kexec mailing list