From: Lennart Poettering Date: Tue, 25 Mar 2014 00:46:24 +0000 (+0100) Subject: util: consider both fuse.glusterfs and glusterfs network file systems X-Git-Tag: v212~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=67608cad2301f9ab5c92336992c176505640f2ba;p=elogind.git util: consider both fuse.glusterfs and glusterfs network file systems Based on a similar patch by Lukáš Nykrýn. --- 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); }