OSDN Git Service

tune2fs: always check disable_uninit_bg() return code
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 11 Sep 2014 19:43:33 +0000 (12:43 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Sep 2014 22:06:31 +0000 (18:06 -0400)
commit3f4c4079976f1ccf0a6d675b0115b519f596da89
treebffb84b31ae395a9e0e437b3acfc83b57d0e10e4
parent2646b48d47267e255db54affd1f788c61c7cfb6b
tune2fs: always check disable_uninit_bg() return code

Enhance disable_uninit_bg() to return error codes -- if something goes
wrong, we want to flag the FS as needing a fsck and exit.  Mr. Reardon
discovered that tune2fs -O ^metadata_csum on a FS with a corrupt
bitmap would leave the FS in a weird state.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reported-by: TR Reardon <thomas_reardon@hotmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c