From dc964ab0d3a9bab3d2f85efb07487b75f1beda92 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 3 Nov 2011 14:38:36 +0000 Subject: [PATCH] Thin uses _tdata instead of _tpool for data LV Switch to different suffix and keep -tpool reserved for overlay device name. --- lib/metadata/thin_manip.c | 2 +- lib/misc/lvm-string.c | 2 +- man/lvm.8.in | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/metadata/thin_manip.c b/lib/metadata/thin_manip.c index 9b7fef0c2..8449f403d 100644 --- a/lib/metadata/thin_manip.c +++ b/lib/metadata/thin_manip.c @@ -300,7 +300,7 @@ int extend_pool(struct logical_volume *pool_lv, const struct segment_type *segty return_0; if (!(data_lv = insert_layer_for_lv(pool_lv->vg->cmd, pool_lv, - pool_lv->status, "_tpool"))) + pool_lv->status, "_tdata"))) return_0; seg = first_seg(pool_lv); diff --git a/lib/misc/lvm-string.c b/lib/misc/lvm-string.c index 158b3f388..6932e2351 100644 --- a/lib/misc/lvm-string.c +++ b/lib/misc/lvm-string.c @@ -107,7 +107,7 @@ int apply_lvname_restrictions(const char *name) "_rimage", "_rmeta", "_vorigin", - "_tpool", + "_tdata", "_tmeta", NULL }; diff --git a/man/lvm.8.in b/man/lvm.8.in index b24ea7fad..c78411327 100644 --- a/man/lvm.8.in +++ b/man/lvm.8.in @@ -276,7 +276,7 @@ VG and LV names cannot begin with a hyphen. There are also various reserved names that are used internally by lvm that can not be used as LV or VG names. A VG cannot be called anything that exists in /dev/ at the time of creation, nor can it be called '.' or '..'. A LV cannot be called '.' '..' 'snapshot' or 'pvmove'. The LV name may also not contain -the strings '_mlog', '_mimage', '_tmeta', '_tpool'. +the strings '_mlog', '_mimage', '_tdata', '_tmeta'. .SH DIAGNOSTICS