linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* What does last_rule really mean?
@ 2009-10-25  1:45 Tom Horsley
  2009-10-25  2:20 ` David Zeuthen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Tom Horsley @ 2009-10-25  1:45 UTC (permalink / raw)
  To: linux-hotplug

I'm trying to figure out how to write my own udev rules because
fedora is conveniently switching from hal to udev to control
things like which disks get automounted by nautilus in a gnome
session, so I see a lot of docs on the web that recommend
last_rule as a way to override the system rules.

First question:

The udev man page says this about last_rule:

   Stops further rules application. No later rules will have
   any effect.

If taken at face value, that implies that you can't use
last_rule more than once in all your udev rules becase it
will completely ignore everything after that rule.

I'm betting that isn't what it actually means :-).

So what is last_rule really "last" for? Can someone provide
a pseudocode algorithm to define it unambiguously? Or is
last_rule not really what I want anyway?

Second question:

I'm trying to match the disk with the label "BACKUP", in
hal, that was simply an attribute I could ask about, in
udev there does not appear to be a ATTR of any kind that
will get me the label.

How can I match the disk label? Can I run a program to
create a pattern? Any examples?


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-10-28 10:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-25  1:45 What does last_rule really mean? Tom Horsley
2009-10-25  2:20 ` David Zeuthen
2009-10-25 14:08 ` Tom Horsley
2009-10-25 17:51 ` Kay Sievers
2009-10-25 19:05 ` Tom Horsley
2009-10-28 10:52 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).