summaryrefslogtreecommitdiff
path: root/quotaon.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2010-06-14 12:42:57 +0000
committerjkar8572 <jkar8572>2010-06-14 12:42:57 +0000
commit86b82591a57198dbe88f5b37402f299a424e1b57 (patch)
treec5c51996de35d409821dd2928e2f0aaf3db1e9d0 /quotaon.c
parent22418226016a589a2ea355f1965f4123276e6bb8 (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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/quotaon.c b/quotaon.c
index 8f7651b..d95996b 100644
--- a/quotaon.c
+++ b/quotaon.c
@@ -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))