summaryrefslogtreecommitdiff
path: root/quotaon.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2008-12-17 12:40:07 +0000
committerjkar8572 <jkar8572>2008-12-17 12:40:07 +0000
commit830ca0318fc60c8566d76b3961bf9c40e2276569 (patch)
treefd6ac9448e36d836041b0aea7394931bc750e015 /quotaon.c
parent1069b78a6ff95399a5f0ed2b9116f6ab94fb67a1 (diff)
* fix reference to rpc manpage (anonymous reporter)
* add EXT4 (not only EXT4DEV) to the list of supported filesystems (Mingming Cao) * fix setting of more than 31-bit block and inode limits (Gui Xiaohua) * fixed bug in error reporting when quota reading fails (Jan Kara) * added support for quota formats with hidden quota files (Jan Kara)
Diffstat (limited to 'quotaon.c')
-rw-r--r--quotaon.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/quotaon.c b/quotaon.c
index 3f5ac86..51b107e 100644
--- a/quotaon.c
+++ b/quotaon.c
@@ -34,7 +34,7 @@
#ident "$Copyright: (c) 1980, 1990 Regents of the University of California $"
#ident "$Copyright: All rights reserved. $"
-#ident "$Id: quotaon.c,v 1.25 2008/03/13 14:49:33 jkar8572 Exp $"
+#ident "$Id: quotaon.c,v 1.26 2008/12/17 12:40:07 jkar8572 Exp $"
/*
* Turn quota on/off for a filesystem.
@@ -173,6 +173,12 @@ static int newstate(struct mntent *mnt, int type, char *extra)
|| (!(flags & FL_OFF) && kern_quota_on(mnt->mnt_fsname, type, 1 << QF_XFS))))
ret = xfs_newstate(mnt, type, extra, sflags);
}
+ else if (meta_qf_fstype(mnt->mnt_type)) {
+ if (!hasquota(mnt, type, 0))
+ return 0;
+ /* Must be non-empty because empty path is always invalid. */
+ ret = v2_newstate(mnt, type, ".", sflags);
+ }
else {
if (!hasquota(mnt, type, 0))
return 0;