Blame SOURCES/quota-4.03-quotacheck-Use-direct-scanning-also-for-ext4.patch

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