Add infrastructure for cleaner pv handling, v7
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | Add pvid_from_devname() lvmcache function.lib/ lib/ | +21 | 0 replies | |
| 2/6 | Add lvmcache function to lookup a vgname from a pvid.lib/ lib/ | +26 | 0 replies | |
| 3/6 | Add find_vgname_from_{pvname|pvid} functions.lib/ lib/ | +50 | 0 replies | |
| 4/6 | Update pvchange to always obtain a vg handle for each pv to process.tools/ | +55 | 0 replies | |
| 5/6 | Add lvm2app interfaces to lookup a vgname from a pvid and pvname.VERSION liblvm/ liblvm/ +1 more | +62 | 0 replies | |
| 6/6 | Test lvm_vgname_from_{pvid|device}.test/ | +40 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] Add infrastructure for cleaner pv handling, v7
This patchset replaces the last patchset submitted on Wed, 28 Apr 2010 11:55:37.
Quoted 1 line
From now on, a user that wants to get/set a PV property and
knows only the pvname must first lookup the vgname, then obtain a vg handle, and finally use the pv handle to get/set the property.
Early patches add internal functions to lookup a vgname from a device name and pvid, respecting the order of lookup. In cases where we lookup by pvid or there are no mdas, we may need to do increasingly expensive scans to provide the answer. Once the internal functions are given, pvchange is reworked to use this new functionality, and lvm2app interfaces are added to lookup a vgname from a pvname and pvid, which will be useful for udisks and other applications that may not know the vgname but want information on a specific device/PV. The new functionality is tested by running the nightly tests and some lvm2app specific tests.