[lvm-devel] [PATCH 1/4] Move guts of pvcreate into library area - prep for vgcreate.
Alasdair G Kergon
agk at redhat.com
Tue Dec 2 02:48:27 UTC 2008
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).
Alasdair
--
agk at redhat.com
More information about the lvm-devel
mailing list