From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23001 invoked by alias); 24 Oct 2006 15:30:34 -0000 Received: (qmail 22987 invoked by uid 9447); 24 Oct 2006 15:30:33 -0000 Date: Tue, 24 Oct 2006 15:30:00 -0000 Message-ID: <20061024153033.22985.qmail@sourceware.org> From: agk@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/tools lvchange.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00049.txt.bz2 List-Id: CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: agk@sourceware.org 2006-10-24 15:30:33 Modified files: tools : lvchange.c Log message: fix forcesync local active detection Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvchange.c.diff?cvsroot=lvm2&r1=1.70&r2=1.71 --- LVM2/tools/lvchange.c 2006/10/23 23:03:55 1.70 +++ LVM2/tools/lvchange.c 2006/10/24 15:30:33 1.71 @@ -205,17 +205,18 @@ return ECMD_FAILED; } - if (info.exists && !arg_count(cmd, yes_ARG)) { - if (yes_no_prompt("Do you really want to deactivate " + if (info.exists) { + if (!arg_count(cmd, yes_ARG) && + yes_no_prompt("Do you really want to deactivate " "logical volume %s to resync it? [y/n]: ", lv->name) == 'n') { log_print("Logical volume \"%s\" not resynced", lv->name); return ECMD_FAILED; } - } - active = 1; + active = 1; + } } if ((lv->vg->status & CLUSTERED) && !activate_lv_excl(cmd, lv)) {