84b277
From f8615ebc34fb1a960a1bd946650a8c15a9a347fa Mon Sep 17 00:00:00 2001
84b277
From: Lennart Poettering <lennart@poettering.net>
84b277
Date: Tue, 25 Mar 2014 01:46:24 +0100
84b277
Subject: [PATCH] util: consider both fuse.glusterfs and glusterfs network file
84b277
 systems
84b277
MIME-Version: 1.0
84b277
Content-Type: text/plain; charset=UTF-8
84b277
Content-Transfer-Encoding: 8bit
84b277
84b277
Based on a similar patch by Lukáš Nykrýn.
84b277
84b277
Resolves: #1080229
84b277
---
84b277
 src/shared/util.c | 9 ++++++++-
84b277
 1 file changed, 8 insertions(+), 1 deletion(-)
84b277
84b277
diff --git a/src/shared/util.c b/src/shared/util.c
84b277
index 090a204..2974c2a 100644
84b277
--- a/src/shared/util.c
84b277
+++ b/src/shared/util.c
84b277
@@ -1625,7 +1625,14 @@ bool fstype_is_network(const char *fstype) {
84b277
                 "nfs\0"
84b277
                 "nfs4\0"
84b277
                 "gfs\0"
84b277
-                "gfs2\0";
84b277
+                "gfs2\0"
84b277
+                "glusterfs\0";
84b277
+
84b277
+        const char *x;
84b277
+
84b277
+        x = startswith(fstype, "fuse.");
84b277
+        if (x)
84b277
+                fstype = x;
84b277
 
84b277
         return nulstr_contains(table, fstype);
84b277
 }