[lvm-devel] [PATCH 0/3] LVM2 topology support

Mike Snitzer snitzer at redhat.com
Tue Jun 9 04:42:12 UTC 2009


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(-)




More information about the lvm-devel mailing list