Skip to content

LVM2 topology support

Mike Snitzer 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/3cmdline: support for bytes and sectorsWHATS_NEW tools/commands.h tools/lvmcmdline.c+28 -190 replies
2/3pvcreate: --dataalignmentoffsetWHATS_NEW lib/format1/format1.c lib/format_pool/format_pool.c +10 more+78 -140 replies
3/3Add devices/data_alignment_offset_detection to lvm.conf.WHATS_NEW doc/example.conf lib/config/defaults.h +4 more+86 -10 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] LVM2 topology support

LVM2 topology support to properly align the PV's pe_start using the associated 'alignment_offset' exposed in sysfs.

Provides manual configuration with pvcreate --dataalignmentoffset and auto config control via 'devices/data_alignment_offset_detection' in lvm.conf

Documentation was added to the lvm.conf and pvcreate man pages.

Testing with pvcreate + vgextend + vgreduce + vgextend + vgreduce ... proved to maintain the pe_start from the initial pvcreate.

Mike Snitzer (3):
cmdline: support for bytes and sectors
pvcreate: --dataalignmentoffset
Add devices/data_alignment_offset_detection to lvm.conf.

 WHATS_NEW                        |    3 ++
 doc/example.conf                 |    5 +++
 lib/config/defaults.h            |    1 +
 lib/device/device.c              |   60 ++++++++++++++++++++++++++++++++++++++
 lib/device/device.h              |    3 ++
 lib/format1/format1.c            |    1 +
 lib/format_pool/format_pool.c    |    1 +
 lib/format_text/archiver.c       |    2 +-
 lib/format_text/format-text.c    |   33 +++++++++++++++++++--
 lib/metadata/metadata-exported.h |    1 +
 lib/metadata/metadata.c          |   10 +++++-
 lib/metadata/metadata.h          |    1 +
 man/lvm.conf.5.in                |    8 ++++-
 man/pvcreate.8.in                |   18 ++++++++++-
 tools/args.h                     |    1 +
 tools/commands.h                 |   33 +++++++++++----------
 tools/lvmcmdline.c               |   20 +++++++++----
 tools/pvcreate.c                 |   23 +++++++++++++-
 tools/vgconvert.c                |    2 +-
 19 files changed, 192 insertions(+), 34 deletions(-)