Skip to content

Add infrastructure for cleaner pv handling

Dave Wysochanski lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Add a couple of lvmcache functions to aid in lookups by pvname.lib/cache/lvmcache.c lib/cache/lvmcache.h+62 -00 replies
2/3Add find_vgname_from_pvname() function using lvmcache functions.lib/metadata/metadata-exported.h lib/metadata/metadata.c+43 -00 replies
3/3Update pvchange to always obtain a vg handle for each pv to process.tools/pvchange.c+46 -700 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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.