From: Sitsofe Wheeler <sitsofe@yahoo.com>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: Justin Piszcz <jpiszcz@lucidpixels.com>,
linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org,
linux-raid@vger.kernel.org
Subject: Re: General question (scheduler) with SSDs?
Date: Fri, 20 Feb 2009 14:27:05 +0000 [thread overview]
Message-ID: <20090220142705.GA429@silver.sucs.org> (raw)
In-Reply-To: <ac3eb2510902200523o619e64aas7bffac9aeca86814@mail.gmail.com>
On Fri, Feb 20, 2009 at 02:23:38PM +0100, Kay Sievers wrote:
> On Fri, Feb 20, 2009 at 14:12, Sitsofe Wheeler <sitsofe@yahoo.com> 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/
next prev parent reply other threads:[~2009-02-20 14:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-19 13:38 General question (scheduler) with SSDs? Justin Piszcz
2009-02-19 13:50 ` Pádraig Brady
2009-02-20 9:31 ` Sitsofe Wheeler
2009-02-20 9:43 ` Sitsofe Wheeler
2009-02-20 10:37 ` Justin Piszcz
2009-02-20 10:44 ` Sitsofe Wheeler
2009-02-20 11:16 ` Kay Sievers
2009-02-20 13:12 ` Sitsofe Wheeler
2009-02-20 13:23 ` Kay Sievers
2009-02-20 14:27 ` Sitsofe Wheeler [this message]
2009-02-20 14:56 ` Kay Sievers
2009-02-20 19:25 ` Sitsofe Wheeler
2009-02-20 19:35 ` Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090220142705.GA429@silver.sucs.org \
--to=sitsofe@yahoo.com \
--cc=jpiszcz@lucidpixels.com \
--cc=kay.sievers@vrfy.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.