From: David Zeuthen Date: Tue, 19 May 2009 21:43:25 +0000 (-0400) Subject: Only check for ATA SMART if the device reports non-removable media X-Git-Tag: upstream/2.1.2~849 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=458200bcc1e2b30940251d9b4c6c45a3b3757b54;p=platform%2Fupstream%2Fudisks2.git Only check for ATA SMART if the device reports non-removable media --- diff --git a/src/95-devkit-disks.rules b/src/95-devkit-disks.rules index fb8b745..03647f3 100644 --- a/src/95-devkit-disks.rules +++ b/src/95-devkit-disks.rules @@ -60,8 +60,8 @@ ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/sbin/mdadm --examine --e # ata_id and usb_id # -KERNEL=="sd*[!0-9]", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="devkit-disks-probe-ata-smart $tempnode" -KERNEL=="sd*[!0-9]", ENV{ID_BUS}=="scsi", ENV{DEVTYPE}=="disk", ENV{ID_VENDOR}=="ATA", IMPORT{program}="devkit-disks-probe-ata-smart $tempnode" +KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="devkit-disks-probe-ata-smart $tempnode" +KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="scsi", ENV{DEVTYPE}=="disk", ENV{ID_VENDOR}=="ATA", IMPORT{program}="devkit-disks-probe-ata-smart $tempnode" ##############################################################################################################