util: consider both fuse.glusterfs and glusterfs network file systems

Based on a similar patch by Lukáš Nykrýn.

(cherry picked from commit 67608cad23)
This commit is contained in:
Lennart Poettering
2014-04-07 12:19:29 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 643d71530d
commit 5a01c85370
+8 -1
View File
@@ -1503,7 +1503,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);
}