[linux-lvm] device filter in lvm.conf

Bryn M. Reeves bmr at redhat.com
Wed Nov 12 19:06:54 UTC 2008

Tuncel.Mutlu at akbank.com wrote:
> Thanks a lot,

Great! Glad it's working for you now.

> PS: By the way are you sure about sddlm* been the "sddl + 0 or more m". The
> LVM has been accepting my filter now.

Sorry, that was my mistake - this is true for regexes, but since LVM2 
filter regexes have an implicit ".*" at beginning/end (unless you use 
anchors - see the comments in the default lvm.conf) and the '*' will 
match 0 or more occurrences of the preceding character, it actually 
behaves as though there is no '*' there at all.

E.g. "/sdlm*/" would match sdl$ANYTHING, since "m*" is matched by zero 
occurrences of 'm' and the remaining string is consumed by the implicit 
".*" at the end.


More information about the linux-lvm mailing list