]> sourceware.org Git - lvm2.git/commit
Add --dataalignment to pvcreate to specify alignment of data area. (mbroz)
authorAlasdair Kergon <agk@redhat.com>
Sun, 22 Feb 2009 19:00:26 +0000 (19:00 +0000)
committerAlasdair Kergon <agk@redhat.com>
Sun, 22 Feb 2009 19:00:26 +0000 (19:00 +0000)
commit8929ce66517dfdd7f77477eb449a9e913c3a08cb
treee07491a4493b50d65c67539e3c35367074045860
parent47c0f6ae76137dadd1045469418aa0afff9400f0
Add --dataalignment to pvcreate to specify alignment of data area.  (mbroz)

This patch is not fully tested and leaves some related bugs unfixed.

Intended behaviour of the code now:

  pe_start in the lvm2 format PV label header is set only by pvcreate (or
vgconvert -M2) and then preserved in *all* operations thereafter.

  In some specialist cases, after the PV is added to a VG, the pe_start
field in the VG metadata may hold a different value and if so, it
overrides the other one for as long as the PV is in such a VG.

  Currently, the field storing the size of the data area in the PV label
header always holds 0.  As it only has meaning in the context of a
volume group, it is calculated whenever the PV is added to a VG (and can
be derived from extent_size and pe_count in the VG metadata).
17 files changed:
WHATS_NEW
doc/example.conf
lib/format1/format1.c
lib/format_pool/format_pool.c
lib/format_text/archiver.c
lib/format_text/format-text.c
lib/format_text/text_label.c
lib/metadata/metadata-exported.h
lib/metadata/metadata.c
lib/metadata/metadata.h
man/lvm.conf.5.in
man/pvcreate.8.in
test/t-pvcreate-usage.sh
tools/args.h
tools/commands.h
tools/pvcreate.c
tools/vgconvert.c
This page took 0.033512 seconds and 5 git commands to generate.