[Sheepdog] [PATCH 1/2] deleting data objects of a vdi before deleting the inode
Liu Yuan
namei.unix at gmail.com
Tue May 1 12:56:06 CEST 2012
On 05/01/2012 06:43 PM, Christoph Hellwig wrote:
> I don't understand this - after a vdi delete we still show the it when
> doing a vdi list. I can't see how that is not a bug.
I guess you might misunderstand the patch. The deleting VDI operation is
very hard for a distributed cluster, which is subject to node failures.
Current async deleting makes it harder to get it right.
before the path:
1) inode is deleted before data object
2) if failure happens, we don't have any means to try delete again since
inode is deleted.
This patch set aims to
1) delete data object before inode object
2) when the failure happens (some data object is migrated thus
err-return), we still have the name in vdi list output with size 0,
which means last deleting is failed and we can try delete it again.
3) if deleting success, we don't see it in VDI list output.
Thanks,
Yuan
More information about the sheepdog
mailing list