chiark / gitweb /
util: consider both fuse.glusterfs and glusterfs network file systems
authorLennart Poettering <lennart@poettering.net>
Tue, 25 Mar 2014 00:46:24 +0000 (01:46 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 25 Mar 2014 00:46:24 +0000 (01:46 +0100)
Based on a similar patch by Lukáš Nykrýn.

src/shared/util.c

index dd67c2264164b0c04c32a630e11cc872e162245e..ffe6624f9a7076142cd0f3ec8290ed7d8b1141af 100644 (file)
@@ -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);
 }