Skip to contentSkip to conversation

for bz 210511 & 203983

PATCH In review Patrick Caulfield 2 participants 2 messages Oct 13, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 for bz 210511 & 203983

It seems that vgsplit was not propogating the CLUSTERED flag onto the new VG.

Signature · 18 lines
patrick

Index: tools/vgsplit.c
===================================================================
RCS file: /cvs/lvm2/LVM2/tools/vgsplit.c,v
retrieving revision 1.19
diff -u -p -r1.19 vgsplit.c
--- tools/vgsplit.c	2 Sep 2006 01:18:17 -0000	1.19
+++ tools/vgsplit.c	13 Oct 2006 09:57:03 -0000
@@ -302,6 +302,9 @@ int vgsplit(struct cmd_context *cmd, int

 	vg_to->status &= ~EXPORTED_VG;

+	if (vg_from->status & CLUSTERED)
+		vg_to->status |= CLUSTERED;
+
 	if (!vg_write(vg_to) || !vg_commit(vg_to))
 		goto error;
#1 lore raw
Quoted 1 line · Patrick Caulfield

It seems that vgsplit was not propogating the CLUSTERED flag onto the new VG.

Yes; vgsplit has a lot of bugs in it at the moment. That's not the only flag that isn't propogated correctly.

Alasdair

Signature · 1 line
agk at redhat.com