Skip to content

: RFC - Add infrastructure for metadata balancing.

Dave Wysochanski lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Change 'filler' to 'flags' in on-disk 'raw_locn' structure.lib/format_text/layout.h+1 -10 replies
2/5Add mda_is_disabled and mda_set_disabled to metadata_area_ops.include/.symlinks.in lib/format_text/format-text.c lib/format_text/format-text.h +3 more+55 -30 replies
3/5Define new functions and vgs/pvs fields related to mda disable/enable.lib/metadata/metadata-exported.h lib/metadata/metadata.c lib/report/columns.h +1 more+85 -00 replies
4/5Add --metadatadisable to pvchange, allowing for disabling of metadata areas.tools/args.h tools/commands.h tools/pvchange.c+30 -20 replies
5/5Update pvchange, pvs and vgs man pages for metadata disable.man/pvchange.8.in man/pvs.8.in man/vgs.8.in+8 -30 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/5]: RFC - Add infrastructure for metadata balancing.

This patchset is a start towards metadata balancing by introducing --metadatadisable to pvchange as well as new fields to vgs and pvs to count the number of disabled mdas.

The disable/enable is implemented at the low level by taking advantage of the 'filler' field in the mda_header structure on disk. Normally this is written to 0, but I propose we change this 32-bit field to a 'flags' field and then define one flag that is a MDA disable.

This code works for orphan pvs but not yet for pvs in vgs (see FIXME in the code). I am somewhat undecided about possible refactorings in this regard.

Applies cleanly and tested on top of latest upstream:
commit 8e44e884a2b5430097c33641fd155fdf3ff4213c

Author: Alasdair Kergon <[email protected]>
Date:   Fri Jan 22 01:09:09 2010 +0000

post-release