]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
resize2fs: clean up feature test macros with predicate functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 24 Oct 2015 05:23:30 +0000 (01:23 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 24 Oct 2015 05:23:30 +0000 (01:23 -0400)
commit21e37be65ba886a2b743ab435400ec9e63548e36
tree4b4babbb4791cb52df5a43122b468a6632564ef0
parent7889640d6d0b3ec3ce0f557e563e84c7bbe3fc19
resize2fs: clean up feature test macros with predicate functions

Create separate predicate functions to test/set/clear feature flags,
thereby replacing the wordy old macros.  Furthermore, clean out the
places where we open-coded feature tests.

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