[Sheepdog] [PATCH] sheepdog: fix sd_create_branch

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Thu Feb 4 12:02:21 CET 2010


This fix a problem which occurs when booting from a snapshot VDI

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

diff --git a/block/sheepdog.c b/block/sheepdog.c
index 6a45cfa..9755a30 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -1331,7 +1331,7 @@ static int sd_create_branch(struct bdrv_sd_state *s)
 		return -1;
 
 	ret = do_sd_create(s->name, NULL, s->inode.vdi_size >> 9,
-			   s->inode.oid, &oid, 0);
+			   s->inode.oid, &oid, 1);
 	if (ret)
 		goto out;
 
-- 
1.5.6.5




More information about the sheepdog mailing list