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.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.c')
-rw-r--r-- | quotaon.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -291,10 +291,7 @@ static int newstate(struct mntent *mnt, int type, char *extra) errstr(_("Cannot change state of XFS quota. It's not compiled in kernel.\n")); return 1; } - if ((flags & FL_OFF && (kern_quota_on(mnt->mnt_fsname, USRQUOTA, QF_XFS) != -1 - || kern_quota_on(mnt->mnt_fsname, GRPQUOTA, QF_XFS) != -1)) - || (!(flags & FL_OFF) && kern_quota_on(mnt->mnt_fsname, type, QF_XFS) == -1)) - ret = xfs_newstate(mnt, type, extra, sflags); + ret = xfs_newstate(mnt, type, extra, sflags); } else if (meta_qf_fstype(mnt->mnt_type)) { if (!hasquota(mnt, type, 0)) |