Whamcloud - gitweb
tune2fs: abort clearing the dir_index when the fs needs to be fsck'ed first
authorTheodore Ts'o <tytso@mit.edu>
Thu, 21 Jan 2021 22:08:40 +0000 (17:08 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 21 Jan 2021 22:08:40 +0000 (17:08 -0500)
commitf8049f9fd7a5f678ced06e5272385fbf9d7125f3
treef4887e24d48098071b7d39d9fc9db2633f13cd49
parentf84fed462a64fa680a8c89d1e248564dda981bf4
tune2fs: abort clearing the dir_index when the fs needs to be fsck'ed first

We were not checking the return value of check_fsck_needed() when
checking to clear the dir_index feature.  As a result, tune2fs would
print that the file system needed to be checked first, but then go
ahead and clear the dir_index flag.

Addresses-Coverity-Bug: 1467671
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c