]> sourceware.org Git - lvm2.git/commitdiff
Remove test for thin_pool
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 19 Oct 2011 16:32:34 +0000 (16:32 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 19 Oct 2011 16:32:34 +0000 (16:32 +0000)
Since both functions are called during mda read - we don't have full LV info
at this moment.

lib/metadata/thin_manip.c

index 411850ee4538efa83da377a709e9af33bb16e04f..fbaeda1a62281272a2b3e2f5504f978f548d4d21 100644 (file)
@@ -38,12 +38,6 @@ int attach_pool_data_lv(struct lv_segment *seg, struct logical_volume *pool_data
 
 int attach_pool_lv(struct lv_segment *seg, struct logical_volume *pool_lv)
 {
-       if (!lv_is_thin_pool(pool_lv)) {
-               log_error(INTERNAL_ERROR "LV %s is not a thin pool",
-                         pool_lv->name);
-               return 0;
-       }
-
        seg->pool_lv = pool_lv;
        seg->lv->status |= THIN_VOLUME;
 
@@ -72,12 +66,6 @@ int attach_pool_message(struct lv_segment *seg, dm_thin_message_t type,
 {
        struct lv_thin_message *tmsg;
 
-       if (!lv_is_thin_pool(seg->lv)) {
-               log_error(INTERNAL_ERROR "LV %s is not a thin pool.",
-                         seg->lv->name);
-               return 0;
-       }
-
        if (!(tmsg = dm_pool_alloc(seg->lv->vg->vgmem, sizeof(*tmsg)))) {
                log_error("Failed to allocate memory for message.");
                return 0;
This page took 0.040651 seconds and 5 git commands to generate.