Add infrastructure for metadata balancing, v4.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | Change 'filler' to 'flags' in on-disk 'raw_locn' structure.lib/ | +1 | 0 replies | |
| 2/18 | Add text format specific 'rlocn' ignore flag and access functions.include/ lib/ lib/ +1 more | +25 | 0 replies | |
| 3/18 | Add location independent flag and functions to ignore mdas.lib/ lib/ lib/ | +20 | 0 replies | |
| 4/18 | Move dev_open / dev_close outside _vg_read_raw_area().lib/ | +30 | 0 replies | |
| 5/18 | Move dev_open/dev_close outside vgname_from_mda().lib/ lib/ | +13 | 0 replies | |
| 6/18 | Allow raw_read_mda_header to be called from text_label.c.lib/ lib/ lib/ +1 more | +37 | 0 replies | |
| 7/18 | Ensure in-memory state matches on-disk state of mda ignore bit.lib/ lib/ | +5 | 0 replies | |
| 8/18 | Add mda_locn_match() internal library function for mapping pv/device to VG mda.lib/ lib/ lib/ | +52 | 0 replies | |
| 9/18 | Add mda location specific mda_copy constructor.lib/ lib/ lib/ | +42 | 0 replies | |
| 10/18 | Add fid_add_mda() and fid_add_mdas() helpers to manage ignored mdas.lib/ lib/ lib/ +2 more | +28 | 0 replies | |
| 11/18 | Define new functions and vgs/pvs fields related to mda ignore.lib/ lib/ lib/ +1 more | +139 | 0 replies | |
| 12/18 | Add --metadataignore to pvchange, allowing for ignoring of metadata areas.tools/ tools/ tools/ | +32 | 0 replies | |
| 13/18 | Update pvchange, pvs and vgs man pages for metadata ignore.man/ man/ man/ | +8 | 0 replies | |
| 14/18 | Implement ignore of mda if bit set by skipping r/w of metadata.lib/ | +6 | 0 replies | |
| 15/18 | Add mdas_empty_or_ignored() helper function.lib/ lib/ | +14 | 0 replies | |
| 16/18 | Use mdas_is_empty_or_ignored() in place of checks for empty mda list.lib/ lib/ | +20 | 0 replies | |
| 17/18 | Update _vg_read and _text_create_text_instance to use fid_add_mda[s].lib/ lib/ | +12 | 0 replies | |
| 18/18 | Add tests for metadata balance - set/clear/display per-PV ignore bit.test/ | +41 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/18] Add infrastructure for metadata balancing, v4.
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.