mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-09 00:00:04 +03:00
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:
parent
91ba18738e
commit
62345dac62
2
bcache.c
2
bcache.c
@ -755,7 +755,7 @@ static void show_super_common(struct cache_sb *sb, bool force_csum)
|
|||||||
printf(" [match]\n");
|
printf(" [match]\n");
|
||||||
} else {
|
} else {
|
||||||
printf(" [expected %" PRIX64 "]\n", expected_csum);
|
printf(" [expected %" PRIX64 "]\n", expected_csum);
|
||||||
if (!force_csum) {
|
if (force_csum) {
|
||||||
fprintf(stderr, "Corrupt superblock (bad csum)\n");
|
fprintf(stderr, "Corrupt superblock (bad csum)\n");
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user