[lvm-devel] [PATCH 1/4] Move guts of pvcreate into library area - prep for vgcreate.
Dave Wysochanski
dwysocha at redhat.com
Tue Dec 2 03:12:11 UTC 2008
On Tue, 2008-12-02 at 02:48 +0000, Alasdair G Kergon wrote:
> On Tue, Dec 02, 2008 at 02:43:13AM +0000, Alasdair G Kergon wrote:
> > Split the validation into optional validation and compulsory validation.
> > Offer separate library call(s) for the optional validation, but build
> > the compulsory validation into the main call(s).
>
> So looking at pvcreate, most of pvcreate_check() is optional and depending
> on error handling could be done as one piece or broken into multiple functions.
> The few bits of compulsory validation move out of there into the actual
> pvcreate call (which is performed via a vgextend() interface now).
>
Ok, I did not understand that we are going to allow an APP the option to
bypass what was in pvcreate_check() (except the exclusive device open
check).
More information about the lvm-devel
mailing list