summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-05-21 09:59:31 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2019-05-21 09:59:31 -0400
commit00bac487b0f105a875819faaa6bc0e450b80650a (patch)
tree0128235d60b3596b7c6cad6999f92555e63fa9cc
parent95436661cde27fa88c50284cc6671f07b7fecd9e (diff)
Fix for multi device bcachefs filesystems
-rw-r--r--quotasys.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/quotasys.c b/quotasys.c
index 3ac9387..a19aebb 100644
--- a/quotasys.c
+++ b/quotasys.c
@@ -1283,6 +1283,15 @@ alloc:
continue;
}
+ if (!strcmp(mnt->mnt_type, MNTTYPE_BCACHEFS)) {
+ devname = strdup(devname);
+
+ char *p = strchr(devname, ':');
+
+ if (p)
+ *p = '\0';
+ }
+
/* Check for mountpoints under autofs and skip them*/
for (i = 0; i < autofsdircnt; i++) {
int slen = strlen(autofsdir[i]);