diff options
-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) { |