From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16319 invoked by alias); 4 Mar 2012 15:58:32 -0000 Received: (qmail 16302 invoked by uid 9737); 4 Mar 2012 15:58:32 -0000 Date: Sun, 04 Mar 2012 15:58:00 -0000 Message-ID: <20120304155832.16300.qmail@sourceware.org> From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/tools toollib.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: 2012-03/txt/msg00058.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2012-03-04 15:58:32 Modified files: tools : toollib.c Log message: Add FIXMEs Processing loop needs some thinking Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/toollib.c.diff?cvsroot=lvm2&r1=1.245&r2=1.246 --- LVM2/tools/toollib.c 2012/03/01 21:14:43 1.245 +++ LVM2/tools/toollib.c 2012/03/04 15:58:31 1.246 @@ -119,6 +119,10 @@ process_all = 1; } + /* + * FIXME: In case of remove it goes through deleted entries, + * but it works since entries are allocated from vg mem pool. + */ dm_list_iterate_items(lvl, &vg->lvs) { if (lvl->lv->status & SNAPSHOT) continue; @@ -182,6 +186,10 @@ } if (lvargs_supplied && lvargs_matched != dm_list_size(arg_lvnames)) { + /* + * FIXME: lvm supports removal of LV with all its dependencies + * this leads to miscalculation that depends on the order of args. + */ log_error("One or more specified logical volume(s) not found."); if (ret_max < ECMD_FAILED) ret_max = ECMD_FAILED;