teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0235-util-consider-both-fuse.glusterfs-and-glusterfs-netw.patch

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