diff options
author | Ondrej Holy <oholy@redhat.com> | 2019-02-28 11:39:23 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2019-02-28 11:39:23 +0100 |
commit | 2f25bb04270f71bcda703b6eeb8ceb4d4f61089b (patch) | |
tree | 024cb568b4fe2c5f99f9890048fd9cec95e1eba8 | |
parent | 2d8822178633913763639583e21280ec08197b5d (diff) | |
download | gvfs-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.c | 7 |
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 */ |