[sheepdog] [PATCH] sheepdog: add missing .bdrv_has_zero_init

Liu Yuan namei.unix at gmail.com
Tue Aug 6 08:53:58 CEST 2013


On Tue, Aug 06, 2013 at 02:44:37PM +0800, Liu Yuan wrote:
> Cc: Kevin Wolf <kwolf at redhat.com>
> Cc: Stefan Hajnoczi <stefanha at redhat.com>
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  block/sheepdog.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/block/sheepdog.c b/block/sheepdog.c
> index 46821df..eeb5617 100644
> --- a/block/sheepdog.c
> +++ b/block/sheepdog.c
> @@ -2421,6 +2421,7 @@ static BlockDriver bdrv_sheepdog = {
>      .bdrv_file_open = sd_open,
>      .bdrv_close     = sd_close,
>      .bdrv_create    = sd_create,
> +    .bdrv_has_zero_init = bdrv_has_zero_init_1,
>      .bdrv_getlength = sd_getlength,
>      .bdrv_truncate  = sd_truncate,
>  
> @@ -2448,6 +2449,7 @@ static BlockDriver bdrv_sheepdog_tcp = {
>      .bdrv_file_open = sd_open,
>      .bdrv_close     = sd_close,
>      .bdrv_create    = sd_create,
> +    .bdrv_has_zero_init = bdrv_has_zero_init_1,
>      .bdrv_getlength = sd_getlength,
>      .bdrv_truncate  = sd_truncate,
>  

This patch should go for v1.6 too, because qemu-img won't create expected sparse
images for sheepdog without this patch.

Thanks
Yuan



More information about the sheepdog mailing list