diff options
author | Jan Kara <jack@suse.cz> | 2019-07-30 17:25:46 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-07-30 17:28:47 +0200 |
commit | 61e57e73a6c63ad50825182ca80bc2a5fcb3e1e2 (patch) | |
tree | 9325c44a7f33a91a007422f2f8fef4cb75fe1e93 | |
parent | d9996b2b6b3cdcd41485804eabadbf576506c8fa (diff) | |
download | linuxquota-61e57e73a6c63ad50825182ca80bc2a5fcb3e1e2.tar.gz |
quotacheck: Skip checking of filesystems with hidded quota files early
Currently when filesystem tracks quotas in hidden quota files (but is
also capable of tracking it in regular files), we scan the whole
filesystem and only after that find out we cannot actually make use of
newly created quota files. Just detect this case before scanning the fs
and skip it.
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | quotacheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quotacheck.c b/quotacheck.c index 2cdf475..1311c10 100644 --- a/quotacheck.c +++ b/quotacheck.c @@ -1181,11 +1181,11 @@ static int check_all(void) continue; } cfmt = fmt; - if (uwant && me_hasquota(mnt, USRQUOTA)) + if (uwant && me_hasquota(mnt, USRQUOTA) && mnt->me_qfmt[USRQUOTA] != QF_META) ucheck = 1; else ucheck = 0; - if (gwant && me_hasquota(mnt, GRPQUOTA)) + if (gwant && me_hasquota(mnt, GRPQUOTA) && mnt->me_qfmt[GRPQUOTA] != QF_META) gcheck = 1; else gcheck = 0; |