[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] [PATCH 1/4] Move guts of pvcreate into library area - prep for vgcreate.



On Mon, Dec 01, 2008 at 09:26:08PM -0500, Dave Wysochanski wrote:
> I don't see how this is possible.  Are you suggesting we split the
> validation into a separate API call(s), and let an app decide to call it
> or not?
 
There are two sorts of validation.

Optional validation and compulsory validation.

Compulsory validation covers anything that is required for internal LVM
consistency.  This must be built into the library calls and impossible
to bypass.

Optional validation covers everything else: the client of the library
is free to bypass it if it believes it knows what it is doing and
doesn't require it.  Roughly, this is what you get today with -ff -y.

Two current examples from pvcreate:

  Compulsory 
  - The device must not be in use currently (ie we can open it exclusively)

  Optional 
  - PV must not belong to an existing VG (ie we can destroy a VG if want to)

Alasdair
-- 
agk redhat com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]