[gvfs/wip/oholy/x-gvfs-ignore: 3/3] udisks2: Add support for x-gvfs-ignore
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/oholy/x-gvfs-ignore: 3/3] udisks2: Add support for x-gvfs-ignore
- Date: Thu, 28 Feb 2019 10:51:21 +0000 (UTC)
commit 2f25bb04270f71bcda703b6eeb8ceb4d4f61089b
Author: Ondrej Holy <oholy redhat com>
Date: Thu Feb 28 11:39:23 2019 +0100
udisks2: Add support for 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
monitor/udisks2/gvfsudisks2volumemonitor.c | 7 +++++++
1 file changed, 7 insertions(+)
---
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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]