All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enable use new multi-segment registration for static segments too.
@ 2009-07-14 11:21 Milan Broz
  2009-07-14 11:48 ` Alasdair G Kergon
  0 siblings, 1 reply; 2+ messages in thread
From: Milan Broz @ 2009-07-14 11:21 UTC (permalink / raw)
  To: lvm-devel

Enable use new multi-segment registration for static segments.

so it allows adding code like:

#ifdef MYNEWSEG_INTERNAL
	if (!init_mynewseg_segtypes(&seglib))
			return 0;
#endif

Signed-off-by: Milan Broz <mbroz@redhat.com>
---
 lib/commands/toolcontext.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index 7658c47..76802ab 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -855,10 +855,10 @@ static int _init_single_segtype(struct segtype_library *seglib)
 static int _init_segtypes(struct cmd_context *cmd)
 {
 	struct segment_type *segtype;
+	struct segtype_library seglib = { .cmd = cmd };
 
 #ifdef HAVE_LIBDL
 	const struct config_node *cn;
-	struct segtype_library seglib;
 #endif
 
 	if (!(segtype = init_striped_segtype(cmd)))




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] Enable use new multi-segment registration for static segments too.
  2009-07-14 11:21 [PATCH] Enable use new multi-segment registration for static segments too Milan Broz
@ 2009-07-14 11:48 ` Alasdair G Kergon
  0 siblings, 0 replies; 2+ messages in thread
From: Alasdair G Kergon @ 2009-07-14 11:48 UTC (permalink / raw)
  To: lvm-devel

On Tue, Jul 14, 2009 at 01:21:29PM +0200, Milan Broz wrote:
> Enable use new multi-segment registration for static segments.
 
Ack.

Alasdair



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-14 11:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14 11:21 [PATCH] Enable use new multi-segment registration for static segments too Milan Broz
2009-07-14 11:48 ` Alasdair G Kergon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.