[sheepdog] [PATCH] sheepdog: pass vdi_id to sheep daemon for sd_close()
Liu Yuan
namei.unix at gmail.com
Tue Jan 29 06:22:04 CET 2013
From: Liu Yuan <tailai.ly at taobao.com>
Sheep daemon needs vdi_id to identify which vdi is closed to release resources
such as object cache.
Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
block/sheepdog.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/sheepdog.c b/block/sheepdog.c
index 3e49bb8..97c76f5 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -1384,6 +1384,7 @@ static void sd_close(BlockDriverState *bs)
memset(&hdr, 0, sizeof(hdr));
hdr.opcode = SD_OP_RELEASE_VDI;
+ hdr.base_vdi_id = s->inode.vdi_id;
wlen = strlen(s->name) + 1;
hdr.data_length = wlen;
hdr.flags = SD_FLAG_CMD_WRITE;
--
1.7.9.5
More information about the sheepdog
mailing list