summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2016-08-09 19:17:56 +0200
committerJan Kara <jack@suse.cz>2016-08-09 19:17:56 +0200
commit2b3795805c8d1bd8873b046508777fa6e9a5c83d (patch)
treefb7e4ad3c618407dcb9d0271a2e84e48e93aaabf
parent81aca5cee7e6028d74fd0f6142fff40dcb7ba20d (diff)
downloadquota-tools-2b3795805c8d1bd8873b046508777fa6e9a5c83d.tar.gz
quotacheck: Use direct scanning also for ext4
We mistakenly didn't use direct scanning through libext2fs for ext4 filesystem. Add ext4 to the list of filesystem libext2fs can handle. Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r--quotacheck.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/quotacheck.c b/quotacheck.c
index 6f34cff..a6fe432 100644
--- a/quotacheck.c
+++ b/quotacheck.c
@@ -959,7 +959,10 @@ Please stop all programs writing to filesystem or use -m flag to force checking.
start_scan:
debug(FL_VERBOSE | FL_DEBUG, _("Scanning %s [%s] "), mnt->me_devname, mnt->me_dir);
#if defined(EXT2_DIRECT)
- if (!strcmp(mnt->me_type, MNTTYPE_EXT2) || !strcmp(mnt->me_type, MNTTYPE_EXT3) || !strcmp(mnt->me_type, MNTTYPE_NEXT3)) {
+ if (!strcmp(mnt->me_type, MNTTYPE_EXT2) ||
+ !strcmp(mnt->me_type, MNTTYPE_EXT3) ||
+ !strcmp(mnt->me_type, MNTTYPE_NEXT3) ||
+ !strcmp(mnt->me_type, MNTTYPE_EXT4)) {
if ((failed = ext2_direct_scan(mnt->me_devname)) < 0)
goto out;
}