--- tools/lvcreate.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) Index: LVM2.2.02.45/tools/lvcreate.c =================================================================== --- LVM2.2.02.45.orig/tools/lvcreate.c 2009-05-19 21:10:00.000000000 +0200 +++ LVM2.2.02.45/tools/lvcreate.c 2009-05-19 21:18:27.000000000 +0200 @@ -18,6 +18,8 @@ #include +#define SHARED_SUFFIX "-shared" + struct lvcreate_params { /* flags */ int snapshot; @@ -725,7 +727,13 @@ static int _lvcreate(struct cmd_context if (!archive(vg)) return 0; - if (lp->lv_name) + if (lp->shared_store) { + char *name = dm_pool_alloc(cmd->mem, + strlen(lp->origin) + strlen(SHARED_SUFFIX) + 1); + strcpy(name, lp->origin); + strcat(name, SHARED_SUFFIX); + lv_name = name; + } else if (lp->lv_name) lv_name = lp->lv_name; else { if (!generate_lv_name(vg, "lvol%d", lv_name_buf, sizeof(lv_name_buf))) {