[lvm-devel] [PATCH 00/03] Add lvm2app functions to lookup an lv or pv handle
Dave Wysochanski
wysochanski at pobox.com
Sat Nov 20 02:25:37 UTC 2010
This patchset implements helper functions to lookup an lv or pv handle
from vg handle and the pv|lv name or uuid.
Until now, users of lvm2app that wished to obtain an LV or PV handle from
an existing VG must do so by the following sequence:
1) Call lvm_vg_open() to open an existing VG
2) Call lvm_vg_list_{pvs|lvs}() to list all PVs or LVs
3) Find the PV or LV of interest by comparing uuids or names
The above method is awkward for callers of the API that wish to operate
on a single LV or PV. This patchset should make it easier for callers
to do operations on a single LV or PV.
More information about the lvm-devel
mailing list