From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26366 invoked by alias); 10 Jun 2009 15:27:58 -0000 Received: (qmail 26346 invoked by uid 9699); 10 Jun 2009 15:27:57 -0000 Date: Wed, 10 Jun 2009 15:27:00 -0000 Message-ID: <20090610152757.26344.qmail@sourceware.org> From: mornfall@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/tools lvconvert.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: 2009-06/txt/msg00030.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mornfall@sourceware.org 2009-06-10 15:27:57 Modified files: tools : lvconvert.c Log message: Complain when lvconvert --repair is used on non-mirror LV. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.78&r2=1.79 --- LVM2/tools/lvconvert.c 2009/06/04 12:01:16 1.78 +++ LVM2/tools/lvconvert.c 2009/06/10 15:27:57 1.79 @@ -894,6 +894,11 @@ return ECMD_FAILED; } + if (arg_count(cmd, repair_ARG) && !(lv->status & MIRRORED)) { + log_error("Can't repair non-mirrored LV \"%s\".", lv->name); + return ECMD_FAILED; + } + if (lp->snapshot) { if (lv->status & MIRRORED) { log_error("Unable to convert mirrored LV \"%s\" into a snapshot.", lv->name);