dcavalca / rpms / systemd

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