[Sheepdog] [PATCH 8/9] sheep: clear a vdi bitmap when the cluster is formatted

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sat Jan 1 20:53:19 CET 2011


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheep/group.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sheep/group.c b/sheep/group.c
index 2464d18..43fd18b 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -709,6 +709,7 @@ static void vdi_op_done(struct vdi_op_message *msg)
 		latest_epoch = get_latest_epoch();
 		for (i = 1; i <= latest_epoch; i++)
 			remove_epoch(i);
+		memset(sys->vdi_inuse, 0, sizeof(sys->vdi_inuse));
 
 		sys->epoch = 1;
 		sys->recovered_epoch = 1;
-- 
1.5.6.5




More information about the sheepdog mailing list