[glib] Ignore fstab entries that are bind mounts
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Ignore fstab entries that are bind mounts
- Date: Thu, 24 Jan 2013 09:07:33 +0000 (UTC)
commit b0d5ce16782cc06712456ffa6b8a7521a70bcd1e
Author: Alexander Larsson <alexl redhat com>
Date: Wed Jan 23 12:07:10 2013 +0100
Ignore fstab entries that are bind mounts
We don't show the bind mounts anyway, so it only leads to
problems when we show the fstab entries, like being unable
to mount them.
https://bugzilla.gnome.org/show_bug.cgi?id=625552
gio/gunixmounts.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c
index a7b94d8..96ebaea 100644
--- a/gio/gunixmounts.c
+++ b/gio/gunixmounts.c
@@ -774,6 +774,10 @@ _g_get_unix_mount_points (void)
(strcmp (mntent->mnt_dir, "none") == 0))
continue;
+ /* We ignore bind fstab entries, as we ignore bind mounts anyway */
+ if (hasmntopt (mntent, "bind"))
+ continue;
+
mount_entry = g_new0 (GUnixMountPoint, 1);
mount_entry->mount_path = g_strdup (mntent->mnt_dir);
if (strcmp (mntent->mnt_fsname, "/dev/root") == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]