chiark / gitweb /
updated gentoo rule file to handle removable ide devices.
authorGreg KH <gregkh@suse.de>
Thu, 4 Aug 2005 23:33:53 +0000 (16:33 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Aug 2005 23:33:53 +0000 (16:33 -0700)
Thanks to Kay for the quick fix.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
etc/udev/gentoo/udev.rules

index 0c96969..d208f50 100644 (file)
@@ -245,6 +245,12 @@ KERNEL=="tpm*",    NAME="%k", OWNER="tss", GROUP="tss", MODE="0600"
 
 # block device disk id's
 SUBSYSTEM=="block", GROUP="disk", MODE="0640"
+
+# skip accessing removable ide devices, cause the ide drivers are horrible broken
+SUBSYSTEM=="block", BUS=="ide", SYSFS{removable}="1", GOTO="no_volume_id"
+SUBSYSTEM=="block", BUS=="ide", SYSFS{../removable}="1", GOTO="no_volume_id"
+
+# persistent disk device links /dev/disk/
 KERNEL=="hd*[!0-9]", ACTION=="add", IMPORT="/etc/udev/scripts/ata_id --export $tempnode"
 KERNEL=="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="$env{ID_TYPE}/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}"
 KERNEL=="hd*[0-9]", ACTION=="add", IMPORT{parent}=="ID_*", SYMLINK+="$env{ID_TYPE}/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n"