[linux-lvm] Problem in understanding code

Tim Post echo at echoreply.us
Thu Sep 11 11:05:52 UTC 2008

On Wed, 2008-09-10 at 13:44 -0500, Jonathan Brassow wrote:
> You aren't the first person to stumble on this...  The learning curve  
> is pretty steep.

I just did too. I've been working with liblvm2cmd for a day and a half
and began working backwards through tools/ to see how things worked.

> You might want to have a look in the 'tools' directory to get your  
> head around that stuff (check tools.h, commands.h, and args.h).  There  
> is some clever macro work going on that you don't see very often -  
> neat stuff, but not always as clear as it could be.
>   brassow

Thanks to all who made liblvm2cmd which makes things much simpler for
those who are just getting their first glimpse of things. It is going to
take some time to digest the rest.

I found liblvm2cmd by accident, really. I grabbed the source to LVM2
while in search of a more elegant way to use LVM in other programs
without resorting to system() or exec*() calls.


More information about the linux-lvm mailing list