hal: Branch 'master'
Danny Kukawka
dkukawka at kemper.freedesktop.org
Tue Mar 4 08:25:13 PST 2008
hald/linux/osspec.c | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit 0f2dfc66d1f92aaf464adadeaf327d5a31e0ebcb
Author: Danny Kukawka <danny.kukawka at web.de>
Date: Tue Mar 4 17:24:41 2008 +0100
ignore temporary cryptsetup devices
Added adopted and additionally commented patch/workaround from Jakub Schmidtke
<sjakub at gmail.com>, contributed via fd.o bug #12899, to ignore temporary
cryptsetup devices.
Note: This is only a temporary workaround. There is already a fix for this
issue in the udev git master. As soon as a new udev release is available
and HAL starts to depend on the new version we should remove this again.
diff --git a/hald/linux/osspec.c b/hald/linux/osspec.c
index d28792e..266453b 100644
--- a/hald/linux/osspec.c
+++ b/hald/linux/osspec.c
@@ -226,6 +226,16 @@ hald_udev_data (GIOChannel *source, GIOCondition condition, gpointer user_data)
goto invalid;
}
+ /* This is a workaround for temporary cryptsetup devices, HAL should ignore them.
+ * There is already a fix for this issue in the udev git master as soon as a new
+ * udev release is available and HAL starts to depend on the new version we should
+ * remove this again. (added 2008-03-04)
+ */
+ if (strncmp (hotplug_event->sysfs.device_file, "/dev/mapper/temporary-cryptsetup-", 33) == 0) {
+ HAL_INFO (("Temporary workaround: ignoring temporary cryptsetup file"));
+ goto invalid;
+ }
+
HAL_INFO (("SEQNUM=%lld, ACTION=%s, SUBSYSTEM=%s, DEVPATH=%s, DEVNAME=%s, IFINDEX=%d",
hotplug_event->sysfs.seqnum, action, hotplug_event->sysfs.subsystem, hotplug_event->sysfs.sysfs_path,
hotplug_event->sysfs.device_file, hotplug_event->sysfs.net_ifindex));
More information about the hal-commit
mailing list