From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28485 invoked by alias); 16 Mar 2010 15:48:28 -0000 Received: (qmail 28471 invoked by uid 9447); 16 Mar 2010 15:48:28 -0000 Date: Tue, 16 Mar 2010 15:48:00 -0000 Message-ID: <20100316154828.28469.qmail@sourceware.org> From: agk@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/tools pvcreate.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: 2010-03/txt/msg00032.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: agk@sourceware.org 2010-03-16 15:48:28 Modified files: tools : pvcreate.c Log message: replace existing_pv with existing_pvl Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/pvcreate.c.diff?cvsroot=lvm2&r1=1.89&r2=1.90 --- LVM2/tools/pvcreate.c 2010/03/16 15:30:49 1.89 +++ LVM2/tools/pvcreate.c 2010/03/16 15:48:27 1.90 @@ -28,8 +28,8 @@ struct pvcreate_params *pp) { const char *uuid = NULL; - void *existing_pv; struct volume_group *vg; + struct pv_list *existing_pvl; if (arg_count(cmd, restorefile_ARG) && !arg_count(cmd, uuidstr_ARG)) { log_error("--uuid is required with --restorefile"); @@ -56,14 +56,14 @@ pp->restorefile); return 0; } - if (!(existing_pv = find_pv_in_vg_by_uuid(vg, pp->idp)->pv)) { + if (!(existing_pvl = find_pv_in_vg_by_uuid(vg, pp->idp))) { log_error("Can't find uuid %s in backup file %s", uuid, pp->restorefile); return 0; } - pp->pe_start = pv_pe_start(existing_pv); - pp->extent_size = pv_pe_size(existing_pv); - pp->extent_count = pv_pe_count(existing_pv); + pp->pe_start = pv_pe_start(existing_pvl->pv); + pp->extent_size = pv_pe_size(existing_pvl->pv); + pp->extent_count = pv_pe_count(existing_pvl->pv); vg_release(vg); }