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

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