From 211222e56a9d3914c34c6b866c3b9779d363836d Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 9 Jan 2018 04:34:35 -0500 Subject: Add bcachefs support --- quotasys.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'quotasys.c') diff --git a/quotasys.c b/quotasys.c index d8c0e48..3ac9387 100644 --- a/quotasys.c +++ b/quotasys.c @@ -786,6 +786,9 @@ static int hasquota(const char *dev, struct mntent *mnt, int type, int flags) return hasxfsquota(dev, mnt, type, flags); if (!strcmp(mnt->mnt_type, MNTTYPE_OCFS2)) return hasvfsmetaquota(dev, mnt, type, flags); + + if (!strcmp(mnt->mnt_type, MNTTYPE_BCACHEFS)) + return hasxfsquota(dev, mnt, type, flags) != QF_ERROR ? QF_META : QF_ERROR; /* * For ext4 we check whether it has quota in system files and if not, * we fall back on checking standard quotas. Furthermore we cannot use -- cgit v1.2.3