From c2464f7bf215cd17962e917b974c573378d4e58b Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Tue, 25 May 2010 10:59:01 -0400 Subject: Don't probe non-data discs for partition tables Suggested by Kay Sievers. This is related to https://bugzilla.kernel.org/show_bug.cgi?id=15757 Signed-off-by: David Zeuthen --- data/80-udisks.rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/80-udisks.rules b/data/80-udisks.rules index d59df54..d1351f3 100644 --- a/data/80-udisks.rules +++ b/data/80-udisks.rules @@ -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" -- cgit v1.2.3