summaryrefslogtreecommitdiff
path: root/quotaio.c
diff options
context:
space:
mode:
authorTinguely, Mark <mark.tinguely@hpe.com>2018-05-09 16:50:25 +0200
committerJan Kara <jack@suse.cz>2018-05-09 16:50:25 +0200
commita92dcf5a6cc49660d75a67966b0eb093b88e3b4c (patch)
treed14700cd141a2d0103c5639a2518636051f259d6 /quotaio.c
parent59b280ebe22eceaf4250cb3b776674619a4d4ece (diff)
Aadd HPE XFS support
HPE XFS has a different superblock magic and type name to allow the community XFS and HPE XFS to coexist in the same linux kernel. This patch add HPE XFS support to the quota-tools so our customers can use it. Signed-off-by: Mark Tinguely <mark.tinguely@hpe.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'quotaio.c')
-rw-r--r--quotaio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/quotaio.c b/quotaio.c
index df893c6..94ae458 100644
--- a/quotaio.c
+++ b/quotaio.c
@@ -79,7 +79,8 @@ struct quota_handle *init_io(struct mount_entry *mnt, int type, int fmt, int fla
}
if (!strcmp(mnt->me_type, MNTTYPE_XFS) || /* XFS filesystem? */
- !strcmp(mnt->me_type, MNTTYPE_GFS2)) { /* XFS filesystem? */
+ !strcmp(mnt->me_type, MNTTYPE_GFS2) || /* XFS filesystem? */
+ !strcmp(mnt->me_type, MNTTYPE_EXFS)) { /* EXFS filesystem? */
if (fmt != -1 && fmt != QF_XFS) { /* User wanted some other format? */
errstr(_("Only XFS quota format is allowed on XFS filesystem.\n"));
goto out_handle;