From 8929ce66517dfdd7f77477eb449a9e913c3a08cb Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Sun, 22 Feb 2009 19:00:26 +0000 Subject: 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). --- tools/args.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/args.h') 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) -- cgit