summaryrefslogtreecommitdiff
path: root/quotasys.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2010-05-07 15:45:52 +0000
committerjkar8572 <jkar8572>2010-05-07 15:45:52 +0000
commitf3553cfee6701f98e27a30318f8b759bcbbca370 (patch)
tree597f597280f82c55a4b2d363b5ddc6a45e65e2fb /quotasys.c
parent7f17e02d34e8157009d2603bfcea3bc619709eee (diff)
Previous GFS2 patch was missing a hunk to properly detect whether
a GFS2 filesystem has quotas enabled. (Christoph Hellwig)
Diffstat (limited to 'quotasys.c')
-rw-r--r--quotasys.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/quotasys.c b/quotasys.c
index 0cc008c..307a359 100644
--- a/quotasys.c
+++ b/quotasys.c
@@ -496,9 +496,8 @@ int hasquota(struct mntent *mnt, int type, int flags)
if (!correct_fstype(mnt->mnt_type) || hasmntopt(mnt, MNTOPT_NOQUOTA))
return 0;
- if (!strcmp(mnt->mnt_type, MNTTYPE_GFS2))
- return 1;
- if (!strcmp(mnt->mnt_type, MNTTYPE_XFS))
+ if (!strcmp(mnt->mnt_type, MNTTYPE_GFS2) ||
+ !strcmp(mnt->mnt_type, MNTTYPE_XFS))
return hasxfsquota(mnt, type, flags);
if (nfs_fstype(mnt->mnt_type)) /* NFS always has quota or better there is no good way how to detect it */
return 1;