diff options
author | David Zeuthen <davidz@redhat.com> | 2010-05-25 10:59:01 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2010-05-25 10:59:01 -0400 |
commit | c2464f7bf215cd17962e917b974c573378d4e58b (patch) | |
tree | 330592c21c13da475eb9f8c01dec4becf4abf2e8 | |
parent | b92e47c276fe3379d0006525b324cfac4762fc45 (diff) |
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 <davidz@redhat.com>
-rw-r--r-- | data/80-udisks.rules | 3 |
1 files changed, 3 insertions, 0 deletions
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" |