summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-25 01:46:24 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-25 01:46:24 +0100
commit67608cad2301f9ab5c92336992c176505640f2ba (patch)
treec2f74f6533c5d65c81eb466f305c2f379fbadde7 /src
parent981e4cd325410384cdadd837f34c002699d2d750 (diff)
util: consider both fuse.glusterfs and glusterfs network file systems
Based on a similar patch by Lukáš Nykrýn.
Diffstat (limited to 'src')
-rw-r--r--src/shared/util.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index dd67c22641..ffe6624f9a 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -1500,7 +1500,14 @@ bool fstype_is_network(const char *fstype) {
"nfs\0"
"nfs4\0"
"gfs\0"
- "gfs2\0";
+ "gfs2\0"
+ "glusterfs\0";
+
+ const char *x;
+
+ x = startswith(fstype, "fuse.");
+ if (x)
+ fstype = x;
return nulstr_contains(table, fstype);
}