Don't probe non-data discs for partition tables
authorDavid Zeuthen <davidz@redhat.com>
Tue, 25 May 2010 14:59:01 +0000 (10:59 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 25 May 2010 14:59:01 +0000 (10:59 -0400)
Suggested by Kay Sievers. This is related to
https://bugzilla.kernel.org/show_bug.cgi?id=15757

Signed-off-by: David Zeuthen <davidz@redhat.com>
data/80-udisks.rules

index d59df54..d1351f3 100644 (file)
@@ -80,6 +80,9 @@ KERNEL=="hd*[0-9]", ATTR{removable}=="1", GOTO="probe_parttable_end"
 # don't scan for partition tables on empty discs
 KERNEL=="sr*", ENV{ID_CDROM_MEDIA}!="?*", GOTO="probe_parttable_end"
 
+# skip non-data discs (see https://bugzilla.kernel.org/show_bug.cgi?id=15757 for the udev bits)
+KERNEL=="sr*", ENV{ID_CDROM_MEDIA_TRACK_COUNT_DATA}=="", GOTO="probe_parttable_end"
+
 # scan for partition tables both on whole-disk and partitions
 #
 IMPORT{program}="udisks-part-id $tempnode"