Re: General question (scheduler) with SSDs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 20, 2009 at 02:23:38PM +0100, Kay Sievers wrote:
> On Fri, Feb 20, 2009 at 14:12, Sitsofe Wheeler <sitsofe@xxxxxxxxx> wrote:
> >
> > I tried
> > SUBSYSTEM=="block", ATTRS{model}=="ASUS-PHISON *", ATTR{queue/rotational}="0"
> > but udevtest /sys/block/sda/ doesn't list it as firing (udev 117-8)...
> 
> I does here:
>   udev_rules_apply_to_event: ATTR '/sys/devices/ ...
> /sdb/queue/rotational' writing '0'
> 
>   $grep . /sys/class/block/*/queue/rotational
>   /sys/class/block/sda/queue/rotational:1
>   /sys/class/block/sdb/queue/rotational:0
> 
> Maybe "udevtest" is not showing it for you, or udev 117 is too old and
> does not work that way.

After you mentioned this I tried again and seemingly I was mistaken - it
does work as you described. I had to make a slight rule tweak to stop
it matching on partitions though:

SUBSYSTEM=="block", KERNEL=="[sh]d[a-z]", ATTRS{model}=="ASUS-PHISON *", ATTR{queue/rotational}="0"
SUBSYSTEM=="block", KERNEL=="[sh]d[a-z]", ATTRS{idVendor}=="0951", ATTRS{idProduct}=="1606", ATTR{queue/rotational}="0"
SUBSYSTEM=="block", KERNEL=="[sh]d[a-z]", ATTRS{manufacturer}=="SanDisk", ATTRS{product}=="Cruzer Micro", ATTR{queue/rotational}="0"

Thanks!

-- 
Sitsofe | http://sucs.org/~sits/
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux