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