[Sheepdog] [PATCH] sheepdog: fix sd_create_branch
    FUJITA Tomonori 
    fujita.tomonori at lab.ntt.co.jp
       
    Thu Feb  4 12:38:49 CET 2010
    
    
  
On Thu,  4 Feb 2010 20:02:21 +0900
MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> wrote:
> 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);
Oops, I don't try this but looks correct.
Thanks,
    
    
More information about the sheepdog
mailing list