diff options
author | jkar8572 <jkar8572> | 2010-06-14 10:06:04 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2010-06-14 10:06:04 +0000 |
commit | 22418226016a589a2ea355f1965f4123276e6bb8 (patch) | |
tree | 0690d83ff5abc58843a10876ba4ba66fcf323775 | |
parent | b95ab586eceb96bc02a66b3049a2e0a2647926c8 (diff) |
For XFS, quotaon -f should turn off only limit enforcement as described in the manpage (Eric Sandeen)
-rw-r--r-- | Changelog | 1 | ||||
-rw-r--r-- | quotaon_xfs.c | 7 |
2 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,5 @@ Changes in quota-tools from 3.17 to 4.00-pre2 +* fix quotaon to turn off only limit enforcement on XFS (Eric Sandeen) * fix quotaon to print all informational messages only in verbose mode (Jan Kara) * fix warnquota manpage to not speak about RPC (Jan Kara) * fix repquota to get latest quota info header (Jan Kara) diff --git a/quotaon_xfs.c b/quotaon_xfs.c index d19f31b..9cafbd9 100644 --- a/quotaon_xfs.c +++ b/quotaon_xfs.c @@ -207,10 +207,9 @@ int xfs_newstate(struct mntent *mnt, int type, char *xarg, int flags) } #endif /* XFS_ROOTHACK */ - if (xarg == NULL) { /* both acct & enfd on/off */ - xopts |= (type == USRQUOTA) ? - (XFS_QUOTA_UDQ_ACCT | XFS_QUOTA_UDQ_ENFD) : - (XFS_QUOTA_GDQ_ACCT | XFS_QUOTA_GDQ_ENFD); + if (xarg == NULL) { /* only enfd on/off */ + xopts |= (type == USRQUOTA) ? XFS_QUOTA_UDQ_ENFD : + XFS_QUOTA_GDQ_ENFD; err = xfs_onoff((char *)dev, type, flags, roothack, xopts); } else if (strcmp(xarg, "account") == 0) { |