summaryrefslogtreecommitdiff
path: root/quotaon.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2004-05-24 19:39:15 +0000
committerjkar8572 <jkar8572>2004-05-24 19:39:15 +0000
commite1200421607be898a9c56618948c3f5e4e00781e (patch)
tree0d5c6787f879b8cd79c324683bdde037d26ac2b5 /quotaon.c
parent06ac151a68c668a8c4cee8a2a377b0ae93b99fb1 (diff)
downloadlinuxquota-e1200421607be898a9c56618948c3f5e4e00781e.tar.gz
Updated version to 3.12
Fixed a few memleaks Added two manpages Fixed problem with all-zero root structure
Diffstat (limited to 'quotaon.c')
-rw-r--r--quotaon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/quotaon.c b/quotaon.c
index 78c5414..7710b58 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.17 2003/07/15 22:40:34 jkar8572 Exp $"
+#ident "$Id: quotaon.c,v 1.18 2004/05/24 19:39:15 jkar8572 Exp $"
/*
* Turn quota on/off for a filesystem.
@@ -172,6 +172,9 @@ static int print_state(struct mntent *mnt, int type)
if (kernel_formats & (1 << QF_XFS))
on = kern_quota_on(mnt->mnt_fsname, type, 1 << QF_XFS) != -1;
}
+ else if (kernel_iface == IFACE_GENERIC)
+ /* PSz 28 Apr 04 Have V0 and OLD set, try both */
+ on = kern_quota_on(mnt->mnt_fsname, type, kernel_formats) != -1;
else if (kernel_formats & (1 << QF_VFSV0))
on = kern_quota_on(mnt->mnt_fsname, type, 1 << QF_VFSV0) != -1;
else if (kernel_formats & (1 << QF_VFSOLD))