2f2687c
From 2b3795805c8d1bd8873b046508777fa6e9a5c83d Mon Sep 17 00:00:00 2001
2f2687c
From: Jan Kara <jack@suse.cz>
2f2687c
Date: Tue, 9 Aug 2016 19:17:56 +0200
2f2687c
Subject: [PATCH] quotacheck: Use direct scanning also for ext4
2f2687c
MIME-Version: 1.0
2f2687c
Content-Type: text/plain; charset=UTF-8
2f2687c
Content-Transfer-Encoding: 8bit
2f2687c
2f2687c
We mistakenly didn't use direct scanning through libext2fs for ext4
2f2687c
filesystem. Add ext4 to the list of filesystem libext2fs can handle.
2f2687c
2f2687c
Signed-off-by: Jan Kara <jack@suse.cz>
2f2687c
Signed-off-by: Petr Písař <ppisar@redhat.com>
2f2687c
---
2f2687c
 quotacheck.c | 5 ++++-
2f2687c
 1 file changed, 4 insertions(+), 1 deletion(-)
2f2687c
2f2687c
diff --git a/quotacheck.c b/quotacheck.c
2f2687c
index 6f34cff..a6fe432 100644
2f2687c
--- a/quotacheck.c
2f2687c
+++ b/quotacheck.c
2f2687c
@@ -959,7 +959,10 @@ Please stop all programs writing to filesystem or use -m flag to force checking.
2f2687c
 start_scan:
2f2687c
 	debug(FL_VERBOSE | FL_DEBUG, _("Scanning %s [%s] "), mnt->me_devname, mnt->me_dir);
2f2687c
 #if defined(EXT2_DIRECT)
2f2687c
-	if (!strcmp(mnt->me_type, MNTTYPE_EXT2) || !strcmp(mnt->me_type, MNTTYPE_EXT3) || !strcmp(mnt->me_type, MNTTYPE_NEXT3)) {
2f2687c
+	if (!strcmp(mnt->me_type, MNTTYPE_EXT2) ||
2f2687c
+	    !strcmp(mnt->me_type, MNTTYPE_EXT3) ||
2f2687c
+	    !strcmp(mnt->me_type, MNTTYPE_NEXT3) ||
2f2687c
+	    !strcmp(mnt->me_type, MNTTYPE_EXT4)) {
2f2687c
 		if ((failed = ext2_direct_scan(mnt->me_devname)) < 0)
2f2687c
 			goto out;
2f2687c
 	}
2f2687c
-- 
2f2687c
2.7.4
2f2687c