diff options
author | jkar8572 <jkar8572> | 2010-06-14 12:42:57 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2010-06-14 12:42:57 +0000 |
commit | 86b82591a57198dbe88f5b37402f299a424e1b57 (patch) | |
tree | c5c51996de35d409821dd2928e2f0aaf3db1e9d0 /quotaon_xfs.c | |
parent | 22418226016a589a2ea355f1965f4123276e6bb8 (diff) |
Fix kern_quota_on() to work with XFS filesystems (Jan Kara)
Fix quotaon to work correctly with XFS filesystems (Jan Kara)
Diffstat (limited to 'quotaon_xfs.c')
-rw-r--r-- | quotaon_xfs.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/quotaon_xfs.c b/quotaon_xfs.c index 9cafbd9..0028a88 100644 --- a/quotaon_xfs.c +++ b/quotaon_xfs.c @@ -213,9 +213,6 @@ int xfs_newstate(struct mntent *mnt, int type, char *xarg, int flags) err = xfs_onoff((char *)dev, type, flags, roothack, xopts); } else if (strcmp(xarg, "account") == 0) { - /* only useful if we want root accounting only */ - if (!roothack || !(flags & STATEFLAG_ON)) - goto done; xopts |= (type == USRQUOTA) ? XFS_QUOTA_UDQ_ACCT : XFS_QUOTA_GDQ_ACCT; err = xfs_onoff((char *)dev, type, flags, roothack, xopts); } @@ -229,7 +226,6 @@ int xfs_newstate(struct mntent *mnt, int type, char *xarg, int flags) } else die(1, _("Invalid argument \"%s\"\n"), xarg); - done: free((char *)dev); return err; } |