From: Ian Jackson Subject: Re: [OSSTEST PATCH 09/22] LVM: Break out lv_create Date: Wed, 11 Nov 2015 16:30:15 +0000 Message-ID: <22083.27927.555188.819741@mariner.uk.xensource.com> References: <1447185214-6551-1-git-send-email-ian.jackson@eu.citrix.com> <1447185214-6551-10-git-send-email-ian.jackson@eu.citrix.com> <1447235890.8556.22.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZwYHs-000327-Le for xen-devel@lists.xenproject.org; Wed, 11 Nov 2015 16:30:20 +0000 In-Reply-To: <1447235890.8556.22.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org, Robert Ho List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [OSSTEST PATCH 09/22] LVM: Break out lv_create"): > On Tue, 2015-11-10 at 19:53 +0000, Ian Jackson wrote: > > +sub lv_create ($$$$) { > > +=A0=A0=A0=A0my ($ho, $vg, $lv, $mb) =3D @_; > > +=A0=A0=A0=A0my $lvdev =3D "/dev/$vg/$lv"; > = > In the original code it was using $gho->{Lvdev}, is this semantic change > deliberate or a rebase-o? If the former then I think it warrants a comment > in the commit message. It was deliberate. I have added this to the commit message: lv_create doesn't (want to) take a $gho, but the $vg and $lv names directly (so that callers can use it when they don't have a suitable $gho whose $gho->{Lvdev} they want to use). In the one existing call site we pass $gho->{Vg} and $gho->{Lv} so that the effect is the same. There is a minor functional change: $gho->{Lvdev} has been put through lv_dev_mapper. But we don't care about that in lv_create (since the LVM operations, and dd, are perfectly happy to use the `real', non-/dev/mapper, names). So we can just use /dev/$vg/$lv. Ian.