]> sourceware.org Git - lvm2.git/commitdiff
Thin rename internal thin pool segment
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 21 Dec 2011 12:54:19 +0000 (12:54 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 21 Dec 2011 12:54:19 +0000 (12:54 +0000)
Use matching name as kernel target - useful when function like
_percent is using this for validation.

lib/metadata/lv_manip.c
lib/thin/thin.c
tools/lvcreate.c

index 1cc3cc569006e8d9e585c28e0bcdcfbff9dc286b..0675350c02479b61e1e6402264774a1405787d96 100644 (file)
@@ -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)))
index d19f497a603472437ee8b7e2b34e7ea1a7987356..b21bf9170f10ff6712d53b49f1a03bc5ddab4964 100644 (file)
@@ -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 }
        };
index d079c1c9ab317e39683e60ce13967904df08374f..6118ab5f1a3b48bf890a72833aecc7dc8d09d260 100644 (file)
@@ -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;
This page took 0.04574 seconds and 5 git commands to generate.