rpms/gvfs/devel gvfs-1.2.1-only-mount-the-metal.patch, NONE, 1.1 gvfs.spec, 1.119, 1.120
David Zeuthen
davidz at fedoraproject.org
Thu Apr 9 18:36:36 UTC 2009
- Previous message (by thread): rpms/hwdata/devel import.log, NONE, 1.1 .cvsignore, 1.101, 1.102 hwdata.spec, 1.110, 1.111 sources, 1.104, 1.105
- Next message (by thread): rpms/libpqxx/devel libpqxx-2.6.8-visibility-2.patch, NONE, 1.1 libpqxx-2.6.8-visibility.patch, 1.2, 1.3 libpqxx.spec, 1.23, 1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: davidz
Update of /cvs/pkgs/rpms/gvfs/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10712
Modified Files:
gvfs.spec
Added Files:
gvfs-1.2.1-only-mount-the-metal.patch
Log Message:
* Thu Apr 9 2009 David Zeuthen <davidz at redhat.com> - 1.2.1-2
- Avoid automounting device-mapper devices and similar (#494144)
gvfs-1.2.1-only-mount-the-metal.patch:
--- NEW FILE gvfs-1.2.1-only-mount-the-metal.patch ---
--- gvfs-1.2.1/monitor/gdu/ggduvolume.c.orig 2009-04-09 14:13:39.000000000 -0400
+++ gvfs-1.2.1/monitor/gdu/ggduvolume.c 2009-04-09 14:28:51.000000000 -0400
@@ -293,6 +293,56 @@ update_volume (GGduVolume *volume)
volume->should_automount = FALSE;
}
+ /* Avoid automounting volumes from
+ *
+ * 1. drives on a 'virtual' or unset bus
+ * 2. volumes without a drive
+ *
+ * This is to avoid interference with things like Fedora's
+ * livecd-tools that use device-mapper to set up images. See
+ * https://bugzilla.redhat.com/show_bug.cgi?id=494144 for more
+ * background.
+ *
+ * In the future we might want to relax 1. so automounting
+ * things like Linux MD and LVM2 devices work.
+ */
+ if (volume->drive != NULL)
+ {
+ GduPresentable *drive_presentable;
+ drive_presentable = g_gdu_drive_get_presentable (volume->drive);
+ if (drive_presentable != NULL)
+ {
+ GduDevice *drive_device;
+ drive_device = gdu_presentable_get_device (drive_presentable);
+ if (drive_device != NULL)
+ {
+ const gchar *bus;
+ bus = gdu_device_drive_get_connection_interface (drive_device);
+ if (bus == NULL || strlen (bus) == 0 || g_strcmp0 (bus, "virtual") == 0)
+ {
+ volume->should_automount = FALSE;
+ }
+ g_object_unref (drive_device);
+ }
+ else
+ {
+ volume->should_automount = FALSE;
+ }
+ }
+ else
+ {
+ volume->should_automount = FALSE;
+ }
+ }
+ else
+ {
+ volume->should_automount = FALSE;
+ }
+
+ g_debug ("should_automount = %d for %s",
+ volume->should_automount,
+ device != NULL ? gdu_device_get_device_file (device) : "(none)");
+
g_free (activation_uri);
}
Index: gvfs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gvfs/devel/gvfs.spec,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -r1.119 -r1.120
--- gvfs.spec 3 Apr 2009 02:07:34 -0000 1.119
+++ gvfs.spec 9 Apr 2009 18:36:06 -0000 1.120
@@ -1,7 +1,7 @@
Summary: Backends for the gio framework in GLib
Name: gvfs
Version: 1.2.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtk.org
@@ -40,6 +40,9 @@
# http://bugzilla.gnome.org/show_bug.cgi?id=573826
Patch4: gvfs-1.1.7-gdu-computer-expose-devices.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=494144
+Patch5: gvfs-1.2.1-only-mount-the-metal.patch
+
%description
The gvfs package provides backend implementations for the gio
framework in GLib. It includes ftp, sftp, cifs.
@@ -124,6 +127,7 @@
%patch2 -p0 -b .gdu
%patch3 -p1 -b .gdu-volumes-typo
%patch4 -p1 -b .computer-gdu
+%patch5 -p1 -b .metal
%build
@@ -267,6 +271,9 @@
%changelog
+* Thu Apr 9 2009 David Zeuthen <davidz at redhat.com> - 1.2.1-2
+- Avoid automounting device-mapper devices and similar (#494144)
+
* Thu Apr 2 2009 Matthias Clasen <mclasen at redhat.com> - 1.2.1-1
- Update to 1.2.1
- Previous message (by thread): rpms/hwdata/devel import.log, NONE, 1.1 .cvsignore, 1.101, 1.102 hwdata.spec, 1.110, 1.111 sources, 1.104, 1.105
- Next message (by thread): rpms/libpqxx/devel libpqxx-2.6.8-visibility-2.patch, NONE, 1.1 libpqxx-2.6.8-visibility.patch, 1.2, 1.3 libpqxx.spec, 1.23, 1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list