From 67608cad2301f9ab5c92336992c176505640f2ba Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 25 Mar 2014 01:46:24 +0100 Subject: [PATCH] util: consider both fuse.glusterfs and glusterfs network file systems MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Based on a similar patch by Lukáš Nykrýn. --- src/shared/util.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/shared/util.c b/src/shared/util.c index dd67c2264..ffe6624f9 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); } -- 2.30.2