summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2019-02-28 11:39:23 +0100
committerOndrej Holy <oholy@redhat.com>2019-02-28 11:39:23 +0100
commit2f25bb04270f71bcda703b6eeb8ceb4d4f61089b (patch)
tree024cb568b4fe2c5f99f9890048fd9cec95e1eba8
parent2d8822178633913763639583e21280ec08197b5d (diff)
downloadgvfs-wip/oholy/x-gvfs-ignore.tar.gz
udisks2: Add support for x-gvfs-ignorewip/oholy/x-gvfs-ignore
x-gvfs-ignore option has been added for trash backend in order to prevent gvfs access to the respective mounts. Let's add support for this option in udisks2 volume monitor as well. It has the same effect as x-gvfs-hide at this point and can be still overwritten by x-gvfs-show. https://gitlab.gnome.org/GNOME/gvfs/issues/375
-rw-r--r--monitor/udisks2/gvfsudisks2volumemonitor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/monitor/udisks2/gvfsudisks2volumemonitor.c b/monitor/udisks2/gvfsudisks2volumemonitor.c
index ff522912..a111e117 100644
--- a/monitor/udisks2/gvfsudisks2volumemonitor.c
+++ b/monitor/udisks2/gvfsudisks2volumemonitor.c
@@ -602,6 +602,13 @@ should_include (const gchar *mount_path,
g_free (value);
goto out;
}
+ value = gvfs_lookup_fstab_options_value (options, "x-gvfs-ignore");
+ if (value != NULL)
+ {
+ ret = FALSE;
+ g_free (value);
+ goto out;
+ }
}
/* Never display internal mountpoints */