From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3890 invoked by alias); 19 Oct 2011 16:32:36 -0000 Received: (qmail 3872 invoked by uid 9737); 19 Oct 2011 16:32:35 -0000 Date: Wed, 19 Oct 2011 16:32:00 -0000 Message-ID: <20111019163235.3870.qmail@sourceware.org> From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/lib/metadata thin_manip.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00062.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2011-10-19 16:32:34 Modified files: lib/metadata : thin_manip.c Log message: Remove test for thin_pool Since both functions are called during mda read - we don't have full LV info at this moment. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/thin_manip.c.diff?cvsroot=lvm2&r1=1.7&r2=1.8 --- LVM2/lib/metadata/thin_manip.c 2011/10/17 14:17:09 1.7 +++ LVM2/lib/metadata/thin_manip.c 2011/10/19 16:32:34 1.8 @@ -38,12 +38,6 @@ 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 @@ { 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;