[linux-lvm] lvm filter regex format

Zdenek Kabelac zkabelac at redhat.com
Mon Dec 18 22:43:57 UTC 2017


Dne 18.12.2017 v 19:53 matthew patton napsal(a):
>>     https://github.com/jthornber/lvm2-ejt/blob/master/libdm/regex/parse_rx.h
>   
> not to be ungrateful but why on earth would one NOT use the glibc standard regex library? Nobody cares about pointless optimization. Surprises like "well, we only implemented most of the spec" are what drives people nuts!
> 
> I agree this particular length-based match is rather odd but there are plenty of useful examples I am sure that could benefit from {x,y} notation.


Such code was actually written long time ago - but since the syntax of 
standard glibc  regex accepts slightly different strings - it would be an 
incompatible change - so it's been considered now worth breaking the 
compatibility at that time...


Regards

Zdenek




More information about the linux-lvm mailing list