[Sheepdog] [PATCH 1/2] deleting data objects of a vdi before deleting the inode

Christoph Hellwig hch at infradead.org
Tue May 1 14:13:49 CEST 2012


On Tue, May 01, 2012 at 08:06:04PM +0800, Liu Yuan wrote:
> Okay, sorry for the noise((embarrassing)). I got the same problem as you
> said. But it seems that current master works okay now (even without my
> patch [fix nr_copies in vdi.c]), no?

Current master shows the same behaviour for me.  The small patch below
to revert a tiny bit of the offending commit fixes it, but I didn't
have time to actually understand why yet, as I've been busy at a
conference yesterday.


Index: sheepdog/sheep/vdi.c
===================================================================
--- sheepdog.orig/sheep/vdi.c	2012-05-01 08:00:40.968150165 -0400
+++ sheepdog/sheep/vdi.c	2012-05-01 08:03:58.320155224 -0400
@@ -552,7 +552,7 @@ again:
 		goto err;
 	}
 
-	if (inode->name[0] != '\0' && vid != dw->vid)
+	if (inode->name[0] != '\0')
 		goto out;
 
 	for (i = 0; i < ARRAY_SIZE(inode->child_vdi_id); i++) {



More information about the sheepdog mailing list