diff options
author | Jan Tulak <jtulak@redhat.com> | 2017-06-21 17:14:29 -0500 |
---|---|---|
committer | Eric Sandeen <sandeen@redhat.com> | 2017-06-21 17:14:29 -0500 |
commit | 3b3751ab0f9988504b39c161e6e00b462d09c130 (patch) | |
tree | 51954a82e27d0ae2282e699f45a082c1fb6318f7 | |
parent | 2291c68bbf44940c0584a552d74a417d65475a63 (diff) | |
download | xfsprogs-dev-3b3751ab0f9988504b39c161e6e00b462d09c130.tar.gz |
metadump: warn about corruption if log is dirty
Add a warning about possible corruption when exporting a dirty log, as
the log content does not agree with obfuscated metadata.
[sandeen: one more minor wording tweak]
Signed-off-by: Jan Tulak <jtulak@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r-- | db/metadump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/db/metadump.c b/db/metadump.c index e836658914..4515f68267 100644 --- a/db/metadump.c +++ b/db/metadump.c @@ -2726,7 +2726,9 @@ copy_log(void) /* keep the dirty log */ if (obfuscate) print_warning( -_("Filesystem log is dirty; image will contain unobfuscated metadata in log.")); +_("Warning: log recovery of an obfuscated metadata image can leak " +"unobfuscated metadata and/or cause image corruption. If possible, " +"please mount the filesystem to clean the log, or disable obfuscation.")); break; case -1: /* log detection error */ |