bcacheadm: only fail csum check when -f is passed

Change-Id: I710f2b59940414830d08c7d018b53b84c6cbde05
Signed-off-by: Jacob Malevich <jam@daterainc.com>
This commit is contained in:
Jacob Malevich 2014-12-17 12:10:47 -08:00
parent 91ba18738e
commit 62345dac62

View File

@ -755,7 +755,7 @@ static void show_super_common(struct cache_sb *sb, bool force_csum)
printf(" [match]\n");
} else {
printf(" [expected %" PRIX64 "]\n", expected_csum);
if (!force_csum) {
if (force_csum) {
fprintf(stderr, "Corrupt superblock (bad csum)\n");
exit(2);
}