[gvfs] udisks2: Fix handling of volumes with multiple mountpoints
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] udisks2: Fix handling of volumes with multiple mountpoints
- Date: Mon, 10 Oct 2016 12:27:06 +0000 (UTC)
commit be0c464597e244cbd2437fb073a1c82420197531
Author: Ondrej Holy <oholy redhat com>
Date: Thu Oct 6 13:09:19 2016 +0200
udisks2: Fix handling of volumes with multiple mountpoints
Volume is not included currently if it has multiple mount points
and one of them is not considered as user interesting. Change this
logic and include all volumes with at least one user interesting
mount point.
https://bugzilla.gnome.org/show_bug.cgi?id=772306
monitor/udisks2/gvfsudisks2volumemonitor.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/monitor/udisks2/gvfsudisks2volumemonitor.c b/monitor/udisks2/gvfsudisks2volumemonitor.c
index d7cf712..708685b 100644
--- a/monitor/udisks2/gvfsudisks2volumemonitor.c
+++ b/monitor/udisks2/gvfsudisks2volumemonitor.c
@@ -752,12 +752,14 @@ should_include_volume_check_mount_points (GVfsUDisks2VolumeMonitor *monitor,
mount_entry = g_unix_mount_at (mount_point, NULL);
if (mount_entry != NULL)
{
- if (!should_include_mount (monitor, mount_entry))
+ if (should_include_mount (monitor, mount_entry))
{
g_unix_mount_free (mount_entry);
- ret = FALSE;
+ ret = TRUE;
goto out;
}
+
+ ret = FALSE;
g_unix_mount_free (mount_entry);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]