Add --shared-store argument. Does nothing so far. Signed-off-by: Mikulas Patocka --- lib/metadata/metadata-exported.h | 2 ++ tools/args.h | 1 + tools/commands.h | 2 +- tools/lvcreate.c | 8 +++++++- 4 files changed, 11 insertions(+), 2 deletions(-) Index: LVM2.2.02.60/tools/args.h =================================================================== --- LVM2.2.02.60.orig/tools/args.h 2010-01-13 02:45:15.000000000 +0100 +++ LVM2.2.02.60/tools/args.h 2010-02-08 13:52:25.000000000 +0100 @@ -106,6 +106,7 @@ arg(size_ARG, 'L', "size", size_mb_arg, arg(logicalextent_ARG, 'L', "logicalextent", int_arg_with_sign, 0) arg(persistent_ARG, 'M', "persistent", yes_no_arg, 0) arg(merge_ARG, '\0', "merge", NULL, 0) +arg(shared_store_ARG, 'S', "sharedstore", string_arg, 0) arg(major_ARG, 'j', "major", major_arg, 0) arg(mirrors_ARG, 'm', "mirrors", int_arg_with_sign, 0) arg(metadatatype_ARG, 'M', "metadatatype", metadatatype_arg, 0) Index: LVM2.2.02.60/tools/commands.h =================================================================== --- LVM2.2.02.60.orig/tools/commands.h 2010-01-13 02:45:16.000000000 +0100 +++ LVM2.2.02.60/tools/commands.h 2010-02-08 13:51:53.000000000 +0100 @@ -196,7 +196,7 @@ xx(lvcreate, name_ARG, nosync_ARG, noudevsync_ARG, permission_ARG, persistent_ARG, readahead_ARG, regionsize_ARG, size_ARG, snapshot_ARG, stripes_ARG, stripesize_ARG, test_ARG, type_ARG, virtualoriginsize_ARG, virtualsize_ARG, - zero_ARG) + zero_ARG, shared_store_ARG) xx(lvdisplay, "Display information about a logical volume", Index: LVM2.2.02.60/tools/lvcreate.c =================================================================== --- LVM2.2.02.60.orig/tools/lvcreate.c 2010-02-08 02:05:32.000000000 +0100 +++ LVM2.2.02.60/tools/lvcreate.c 2010-02-08 13:51:53.000000000 +0100 @@ -392,8 +392,14 @@ static int _lvcreate_params(struct lvcre log_print("Redundant stripes argument: default is 1"); if (arg_count(cmd, snapshot_ARG) || seg_is_snapshot(lp) || - arg_count(cmd, virtualsize_ARG)) + arg_count(cmd, virtualsize_ARG)) { lp->snapshot = 1; + if (arg_count(cmd, shared_store_ARG)) + lp->shared_store = arg_value(cmd, shared_store_ARG); + } else if (arg_count(cmd, shared_store_ARG)) { + log_error("Exception store supported only for snapshots"); + return 0; + } lp->mirrors = 1; Index: LVM2.2.02.60/lib/metadata/metadata-exported.h =================================================================== --- LVM2.2.02.60.orig/lib/metadata/metadata-exported.h 2010-01-13 02:56:18.000000000 +0100 +++ LVM2.2.02.60/lib/metadata/metadata-exported.h 2010-02-08 13:51:53.000000000 +0100 @@ -536,6 +536,8 @@ struct lvcreate_params { const char *vg_name; /* all */ const char *lv_name; /* all */ + const char *shared_store; /* type of shared exception store */ + uint32_t stripes; /* striped */ uint32_t stripe_size; /* striped */ uint32_t chunk_size; /* snapshot */