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.54/tools/args.h =================================================================== --- LVM2.2.02.54.orig/tools/args.h 2009-10-26 15:37:09.000000000 +0100 +++ LVM2.2.02.54/tools/args.h 2009-10-29 16:30:08.000000000 +0100 @@ -103,6 +103,7 @@ arg(list_ARG, 'l', "list", NULL, 0) arg(size_ARG, 'L', "size", size_mb_arg, 0) arg(logicalextent_ARG, 'L', "logicalextent", int_arg_with_sign, 0) arg(persistent_ARG, 'M', "persistent", yes_no_arg, 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.54/tools/commands.h =================================================================== --- LVM2.2.02.54.orig/tools/commands.h 2009-10-26 15:37:09.000000000 +0100 +++ LVM2.2.02.54/tools/commands.h 2009-10-29 16:30:08.000000000 +0100 @@ -181,7 +181,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.54/tools/lvcreate.c =================================================================== --- LVM2.2.02.54.orig/tools/lvcreate.c 2009-09-15 00:47:49.000000000 +0200 +++ LVM2.2.02.54/tools/lvcreate.c 2009-10-29 16:30:08.000000000 +0100 @@ -396,8 +396,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.54/lib/metadata/metadata-exported.h =================================================================== --- LVM2.2.02.54.orig/lib/metadata/metadata-exported.h 2009-10-16 19:41:52.000000000 +0200 +++ LVM2.2.02.54/lib/metadata/metadata-exported.h 2009-10-29 16:30:08.000000000 +0100 @@ -533,6 +533,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 */