diff options
author | jkar8572 <jkar8572> | 2004-05-24 19:39:15 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2004-05-24 19:39:15 +0000 |
commit | e1200421607be898a9c56618948c3f5e4e00781e (patch) | |
tree | 0d5c6787f879b8cd79c324683bdde037d26ac2b5 /quotaon.c | |
parent | 06ac151a68c668a8c4cee8a2a377b0ae93b99fb1 (diff) | |
download | linuxquota-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)) |