Add infrastructure for cleaner pv handling
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Add a couple of lvmcache functions to aid in lookups by pvname.lib/ lib/ | +62 | 0 replies | |
| 2/3 | Add find_vgname_from_pvname() function using lvmcache functions.lib/ lib/ | +43 | 0 replies | |
| 3/3 | Update pvchange to always obtain a vg handle for each pv to process.tools/ | +46 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] Add infrastructure for cleaner pv handling
This patchset adds some infrastructure to move us more towards the goal of removing the standalone PV object.
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.
The last patch reworks pvchange to use this new functionality. It passes the testsuite but does still have one bug. A setup with a VG containing a PV with metadatacopies == 0 and pvchange -u --all end up failing because the PV is on both the orphan VG and the real VG. I think this is a bug internally unrelated to this patchset but I have yet to track it down. It should be fixed before we move the tools to this new method.