MDEV: regexps in rename clause

dronnikov at gmail.com dronnikov at gmail.com
Sat Mar 22 16:24:51 UTC 2008


Hello, Denys!

We already use regexps when matching device nodes. Why cannt we use matched substrings in rename clause?
Attached is the patch to allow such behavior. Tokens of form %N will expand to N-th substring in regexp.

E.g. use

loop([0-9]+)	root:disk	660	>loop/%1

to place /dev/loop0 at /dev/loop/0

This should allow much more advanced mdev configuration.

Comments?

--
Vladimir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mdev.patch
Type: application/octet-stream
Size: 3468 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080322/c4abe068/attachment-0002.obj 


More information about the busybox mailing list