Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51a3b0b
)
debugfs: suppress spurious "checksum errors" message for unrelated failures
author
Theodore Ts'o
<tytso@mit.edu>
Mon, 25 Jun 2018 01:21:49 +0000
(21:21 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 25 Jun 2018 01:21:49 +0000
(21:21 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/debugfs.c
patch
|
blob
|
history
diff --git
a/debugfs/debugfs.c
b/debugfs/debugfs.c
index
2bf6a30
..
ecca810
100644
(file)
--- a/
debugfs/debugfs.c
+++ b/
debugfs/debugfs.c
@@
-172,7
+172,8
@@
static void open_filesystem(char *device, int open_flags, blk64_t superblock,
try_open_again:
retval = ext2fs_open(device, open_flags, superblock, blocksize,
io_ptr, ¤t_fs);
- if (retval && !(open_flags & EXT2_FLAG_IGNORE_CSUM_ERRORS)) {
+ if (retval && (retval == EXT2_ET_SB_CSUM_INVALID) &&
+ !(open_flags & EXT2_FLAG_IGNORE_CSUM_ERRORS)) {
open_flags |= EXT2_FLAG_IGNORE_CSUM_ERRORS;
printf("Checksum errors in superblock! Retrying...\n");
goto try_open_again;