[Sheepdog] [PATCH 6/9] Revert "sheep: fix vdi deletion"

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


To search an unused bit correctly, we cannot clear a vdi bit after
deleting VDIs.

This partially reverts commit c046e740ea.

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

diff --git a/sheep/group.c b/sheep/group.c
index 65a8b65..2464d18 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -693,12 +693,7 @@ static void vdi_op_done(struct vdi_op_message *msg)
 		break;
 	}
 	case SD_OP_DEL_VDI:
-	{
-		unsigned long nr = rsp->vdi_id;
-		vprintf(SDOG_INFO "done %d %ld\n", ret, nr);
-		clear_bit(nr, sys->vdi_inuse);
 		break;
-	}
 	case SD_OP_LOCK_VDI:
 	case SD_OP_RELEASE_VDI:
 	case SD_OP_GET_VDI_INFO:
-- 
1.5.6.5




More information about the sheepdog mailing list