From a92dcf5a6cc49660d75a67966b0eb093b88e3b4c Mon Sep 17 00:00:00 2001 From: "Tinguely, Mark" Date: Wed, 9 May 2018 16:50:25 +0200 Subject: 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 Signed-off-by: Jan Kara --- quotaio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'quotaio.c') 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; -- cgit v1.2.3