[linux-lvm] libLVM progress?
kastein at WPI.EDU
Thu Jul 26 20:00:57 UTC 2007
I'm working on putting together an automatic menu/popup-based RAID/volume
management configuration utility, and I'm interested in possibly setting
it up to support LVM systems. Hopefully, the user will be able to plug in
a new hard drive and the system will prompt them as to what they want to
do with it, including adding it to various arrays or logical volumes,
leaving it as reserve space, etc. I spent some time googling for
information on how to interface with the LVM system, and the only things I
could find were:
* use system() or exec() style calls to run the command line LVM utilities
as needed. Works, but not exactly elegant, and definitely not efficient.
* delve deeply into the LVM utilities source code to find the ioctl calls
and/or procfs+sysfs structures being used, then duplicate this in my own
* use a premade LVM interface library.
The last idea came to me when I realized almost everything has a library
these days, so I looked into it, but all I can find is people saying the
current/old liblvm should not be used for new development or as a platform
to base any new liblvm work off of, and people suggesting that a liblvm
project be started to work with the new LVM systems and export a stable,
logical public API. However, I can't find any mention of actual work
being done on this - if I'm just missing it, a link would be great.
Otherwise, is there any work I can base a modern liblvm implementation off
of, or anyone I can talk to about joining a liblvm project to help out?
Ken Stein @ kastein at wpi.edu
WPI ECE Class of 2008
More information about the linux-lvm