summaryrefslogtreecommitdiffstats
path: root/tools/args.h
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2009-02-22 19:00:26 +0000
committerAlasdair Kergon <agk@redhat.com>2009-02-22 19:00:26 +0000
commit8929ce66517dfdd7f77477eb449a9e913c3a08cb (patch)
treee07491a4493b50d65c67539e3c35367074045860 /tools/args.h
parent47c0f6ae76137dadd1045469418aa0afff9400f0 (diff)
downloadlvm2-8929ce66517dfdd7f77477eb449a9e913c3a08cb.tar.gz
lvm2-8929ce66517dfdd7f77477eb449a9e913c3a08cb.tar.xz
lvm2-8929ce66517dfdd7f77477eb449a9e913c3a08cb.zip
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).
Diffstat (limited to 'tools/args.h')
-rw-r--r--tools/args.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/args.h b/tools/args.h
index 8f026fc6..0bfd0281 100644
--- a/tools/args.h
+++ b/tools/args.h
@@ -56,6 +56,7 @@ arg(ignoremonitoring_ARG, '\0', "ignoremonitoring", NULL, 0)
arg(nameprefixes_ARG, '\0', "nameprefixes", NULL, 0)
arg(unquoted_ARG, '\0', "unquoted", NULL, 0)
arg(rows_ARG, '\0', "rows", NULL, 0)
+arg(dataalignment_ARG, '\0', "dataalignment", size_kb_arg, 0)
/* Allow some variations */
arg(resizable_ARG, '\0', "resizable", yes_no_arg, 0)