[lvm-devel] Re: [PATCH] more segtypes in one library
Alasdair G Kergon
agk at redhat.com
Wed Jul 8 12:37:47 UTC 2009
On Thu, Jun 25, 2009 at 10:04:14AM -0400, Mikulas Patocka wrote:
> This is the patch for more segtypes in one shared library. You define
> function init_segtypes (instead of init_segtype) and this function can
> register arbitraty number of segtypes with lvm_add_segtype. It returns
> nonzero on success or zero on failure (in this case, the registered
> segtypes are destroyed and the library is unloaded).
> The old function init_segtype to init one segtype is still available, so
> it doesn't break binary compatibility.
I've modified it a bit (passed a new struct instead of using the static,
added warning if both interfaces defined) and checked it in.
Alasdair
More information about the lvm-devel
mailing list