[PATCH 12/13] Adjust sadump path to the new code.

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

 



sadump feature is a kind of refiltering feature, it can use
TMPDIR for the bitmap file too.

Signed-off-by: Atsushi Kumagai <ats-kumagai at wm.jp.nec.com>
---
 makedumpfile.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/makedumpfile.c b/makedumpfile.c
index fe7670f..e64a7b4 100644
--- a/makedumpfile.c
+++ b/makedumpfile.c
@@ -1034,7 +1034,7 @@ open_dump_bitmap(void)
 
 	/* Unnecessary to open */
 	if (!info->working_dir && !info->flag_reassemble && !info->flag_refiltering
-	    && !info->flag_mem_usage)
+	    && !info->flag_sadump && !info->flag_mem_usage)
 		return TRUE;
 
 	tmpname = getenv("TMPDIR");
@@ -3213,12 +3213,6 @@ initial(void)
 			return FALSE;
 		}
 
-		if(info->flag_cyclic) {
-			info->flag_cyclic = FALSE;
-			MSG("Switched running mode from cyclic to non-cyclic,\n");
-			MSG("because the cyclic mode doesn't support sadump format.\n");
-		}
-
 		set_page_size(sadump_page_size());
 
 		if (!sadump_initialize_bitmap_memory())
@@ -3251,7 +3245,7 @@ out:
 		return FALSE;
 
 	if (info->working_dir || info->flag_reassemble || info->flag_refiltering
-	    || info->flag_mem_usage) {
+	    || info->flag_sadump || info->flag_mem_usage) {
 		/* Implemented as non-cyclic mode based on the file */
 		info->flag_cyclic = FALSE;
 		info->pfn_cyclic = info->max_mapnr;
@@ -6941,7 +6935,7 @@ void
 close_dump_bitmap(void)
 {
 	if (!info->working_dir && !info->flag_reassemble && !info->flag_refiltering
-	    && !info->flag_mem_usage)
+	    && !info->flag_sadump && !info->flag_mem_usage)
 		return;
 
 	if ((info->fd_bitmap = close(info->fd_bitmap)) < 0)
-- 
1.9.0



[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