]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
metadump: Copy the log if not obfuscating or zeroing
authorEric Sandeen <sandeen@sandeen.net>
Wed, 29 Jul 2015 23:17:43 +0000 (09:17 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 29 Jul 2015 23:17:43 +0000 (09:17 +1000)
If we're not obfuscating and we're not zeroing out
stale data, we're collecting maximal information.  Keep
even a clean log intact in that case as well.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/metadump.c

index 67d254567e540a17ed45f55bdb7a464fa74b13c7..cd2edf056cebdcef154619b3e47035afa559c707 100644 (file)
@@ -2207,8 +2207,8 @@ copy_log(void)
                return !stop_on_read_error;
        }
 
-       /* If not obfuscating, just copy the log as it is */
-       if (!obfuscate)
+       /* If not obfuscating or zeroing, just copy the log as it is */
+       if (!obfuscate && !zero_stale_data)
                goto done;
 
        dirty = xlog_is_dirty(mp, &x, 0);