From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31940 invoked by alias); 15 Nov 2011 17:29:53 -0000 Received: (qmail 31923 invoked by uid 9737); 15 Nov 2011 17:29:52 -0000 Date: Tue, 15 Nov 2011 17:29:00 -0000 Message-ID: <20111115172952.31921.qmail@sourceware.org> From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/lib/metadata lv_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-11/txt/msg00065.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2011-11-15 17:29:52 Modified files: lib/metadata : lv_manip.c Log message: Thin update prompt message Enhance message with info about how many thin volumes are going to be removed with thin pool removal. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/lv_manip.c.diff?cvsroot=lvm2&r1=1.335&r2=1.336 --- LVM2/lib/metadata/lv_manip.c 2011/11/15 17:27:41 1.335 +++ LVM2/lib/metadata/lv_manip.c 2011/11/15 17:29:52 1.336 @@ -3257,10 +3257,12 @@ } if (lv_is_used_thin_pool(lv)) { - /* remove thin LVs first */ + /* Remove thin LVs first */ if ((force == PROMPT) && - yes_no_prompt("Do you really want to remove all thin volumes when removing" - " pool logical volume %s? [y/n]: ", lv->name) == 'n') { + yes_no_prompt("Removing pool %s will also remove %u " + "thin volume(s). OK? [y/n]: ", lv->name, + /* Note: Snaphosts not included */ + dm_list_size(&lv->segs_using_this_lv)) == 'n') { log_error("Logical volume %s not removed.", lv->name); return 0; }