summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2011-12-21 12:54:19 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2011-12-21 12:54:19 +0000
commitf582793f1bed5c7e3349f863fded71989f6fb063 (patch)
tree4db294c56ce9d705751f0b53f801d01defd11141
parent077c4d1a355d96bc81255ddeb068cdc401a9d548 (diff)
downloadlvm2-f582793f1bed5c7e3349f863fded71989f6fb063.tar.gz
lvm2-f582793f1bed5c7e3349f863fded71989f6fb063.tar.xz
lvm2-f582793f1bed5c7e3349f863fded71989f6fb063.zip
Thin rename internal thin pool segment
Use matching name as kernel target - useful when function like _percent is using this for validation.
-rw-r--r--lib/metadata/lv_manip.c2
-rw-r--r--lib/thin/thin.c2
-rw-r--r--tools/lvcreate.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 1cc3cc56..0675350c 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -4450,7 +4450,7 @@ int lv_create_single(struct volume_group *vg,
/* Create thin pool first if necessary */
if (lp->create_thin_pool) {
if (!seg_is_thin_pool(lp) &&
- !(lp->segtype = get_segtype_from_string(vg->cmd, "thin_pool")))
+ !(lp->segtype = get_segtype_from_string(vg->cmd, "thin-pool")))
return_0;
if (!(lv = _lv_create_an_lv(vg, lp, lp->pool)))
diff --git a/lib/thin/thin.c b/lib/thin/thin.c
index d19f497a..b21bf917 100644
--- a/lib/thin/thin.c
+++ b/lib/thin/thin.c
@@ -474,7 +474,7 @@ int init_multiple_segtypes(struct cmd_context *cmd, struct segtype_library *segl
const char name[16];
uint32_t flags;
} reg_segtypes[] = {
- { &_thin_pool_ops, "thin_pool", SEG_THIN_POOL },
+ { &_thin_pool_ops, "thin-pool", SEG_THIN_POOL },
/* FIXME Maybe use SEG_THIN_VOLUME instead of SEG_VIRTUAL */
{ &_thin_ops, "thin", SEG_THIN_VOLUME | SEG_VIRTUAL }
};
diff --git a/tools/lvcreate.c b/tools/lvcreate.c
index d079c1c9..6118ab5f 100644
--- a/tools/lvcreate.c
+++ b/tools/lvcreate.c
@@ -371,7 +371,7 @@ static int _read_size_params(struct lvcreate_params *lp,
}
} else {
/* No virtual size given, so no thin LV to create. */
- if (seg_is_thin_volume(lp) && !(lp->segtype = get_segtype_from_string(cmd, "thin_pool")))
+ if (seg_is_thin_volume(lp) && !(lp->segtype = get_segtype_from_string(cmd, "thin-pool")))
return_0;
lp->thin = 0;