[lvm-devel] [PATCH 00/18] Add infrastructure for metadata balancing, v4.
Dave Wysochanski
dwysocha at redhat.com
Wed May 26 14:02:02 UTC 2010
This patchset is a fourth round of the metadata balancing support,
and builds on the third round of patches already submitted (2/9/2010).
It adds the infrastructure to set a bit inside the mda header on
a per-PV basis, control it from pvchange, display the number
of mdas with this bit set on a particular PV or VG, but skips
the VG-based parameters to control the per-PV bits. The vg-based
parameters and control is best dealt with in another patchset.
Changes from the third round start around patch 9 and include:
1) Renamed 'disable' to 'ignore' everywhere, per the last review,
and incorporate review comments.
2) Separate 'metadata_area_ignored' list on the 'fid' structure.
This seemed to simplify and isolate the ignored code from existing
code and should be less risky than checking for a flag in the
vg_write() path.
3) MDA ignore/unignore now implemented. If the bit is set on disk,
at _text_read() time we treat it as a PV with 0 mdas. This means
that when we _vg_read() and construct the VG, we will adjust the
lvmcache and mda lists based on another PVs metadata.
4) Added various helper functions to refactor and simplify code.
These include fid_add_mda() and fid_add_mdas(), and
mdas_empty_or_ignored(), and a location specific mda copy
constructor.
5) Various bugs fixed from the third round of patches.
Still TODO:
1) Submit vg-based parameters and control. For now we can control on
a per-PV basis and this should be adequate for the first release.
More information about the lvm-devel
mailing list