]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - resize/resize2fs.c
misc: use the checksum predicate function, not raw flag tests
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 13 Dec 2013 04:33:45 +0000 (23:33 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 13 Dec 2013 04:33:48 +0000 (23:33 -0500)
commit22cde0096db5f6dbff5bbdcc6d0919c35186fee5
treee77ec70859b99b904f29612ad7dca98345b41e3f
parent8385ad596fd3607296c26ccebd2f6f75b59f5058
misc: use the checksum predicate function, not raw flag tests

metadata_csum implies uninit_bg, and in fact forces the bit off for
rocompat with older implementations.  Therefore, to detect the
presence of checksums, we should use the predicate function to decide
if group descriptor checksums are turned on, not open-coded flag
tests.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/e2image.c
resize/resize2fs.c