[Sheepdog] [PATCH] sheep: don't remove vdi objects

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sun Jan 2 13:27:05 CET 2011


If vdi objects are deleted from the vdi bitmap, sheepdog could fail to
look up vdis.  So it is safe to keep them unremoved.

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

diff --git a/sheep/vdi.c b/sheep/vdi.c
index a88b4e7..ea4442d 100644
--- a/sheep/vdi.c
+++ b/sheep/vdi.c
@@ -391,10 +391,6 @@ static void delete_one(struct work *work, int idx)
 			      vid_to_data_oid(inode.data_vdi_id[i], i),
 			      inode.nr_copies);
 	}
-
-	if (remove_object(entries, nr_nodes, dw->epoch, vid_to_vdi_oid(vdi_id),
-			  sys->nr_sobjs))
-		eprintf("failed to remove vdi objects %x\n", vdi_id);
 }
 
 static void __start_deletion(struct work *work, int idx);
-- 
1.5.6.5




More information about the sheepdog mailing list