[PATCH] Don't ignore ram and loop devices.
Evan Dandrea
evand at ubuntu.com
Wed Aug 5 18:12:58 PDT 2009
DeviceKit-disks udev rules do not ignore ram and loop devices, so the daemon
should not either.
---
src/devkit-disks-device.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/src/devkit-disks-device.c b/src/devkit-disks-device.c
index 5eea218..95078af 100644
--- a/src/devkit-disks-device.c
+++ b/src/devkit-disks-device.c
@@ -3546,11 +3546,6 @@ devkit_disks_device_new (DevkitDisksDaemon *daemon, GUdevDevice *d)
device = NULL;
native_path = g_udev_device_get_sysfs_path (d);
- /* ignore ram and loop devices */
- if (g_str_has_prefix (native_path, "/sys/devices/virtual/block/ram") ||
- g_str_has_prefix (native_path, "/sys/devices/virtual/block/loop"))
- goto out;
-
device = DEVKIT_DISKS_DEVICE (g_object_new (DEVKIT_DISKS_TYPE_DEVICE, NULL));
device->priv->d = g_object_ref (d);
device->priv->daemon = g_object_ref (daemon);
--
1.6.3.3
More information about the devkit-devel
mailing list