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