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