linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev: support explicit key match, non-match and assignment
@ 2005-03-12 21:01 Kay Sievers
  2005-03-17  8:01 ` udev: support explicit key match, non-match and assignment operators Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Kay Sievers @ 2005-03-12 21:01 UTC (permalink / raw)
  To: linux-hotplug

I've added more descriptive key assignment and match operators to the
udev rules parser to make the rules better readable.

The KEY="<value>" format supports '=', '=', '!=,' , '+=' now. This makes it
easy to skip certain attribute matches without composing rules with weird
character class negations like:
  KERNEL="[!s][!c][!d]*"

this can now be replaced with:
  KERNEL!="scd*"

The current simple '=' is still supported, and should work as it does today,
but existing rules should be converted if possible, to be better readable.

Thanks,
Kay



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: udev: support explicit key match, non-match and assignment operators
  2005-03-12 21:01 udev: support explicit key match, non-match and assignment Kay Sievers
@ 2005-03-17  8:01 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2005-03-17  8:01 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Mar 12, 2005 at 10:01:37PM +0100, Kay Sievers wrote:
> I've added more descriptive key assignment and match operators to the
> udev rules parser to make the rules better readable.
> 
> The KEY="<value>" format supports '=', '=', '!=,' , '+=' now. This makes it
> easy to skip certain attribute matches without composing rules with weird
> character class negations like:
>   KERNEL="[!s][!c][!d]*"
> 
> this can now be replaced with:
>   KERNEL!="scd*"
> 
> The current simple '=' is still supported, and should work as it does today,
> but existing rules should be converted if possible, to be better readable.

Very nice, thanks for doing this work.

greg k-h


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2005-03-17  8:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-12 21:01 udev: support explicit key match, non-match and assignment Kay Sievers
2005-03-17  8:01 ` udev: support explicit key match, non-match and assignment operators Greg KH

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).