qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] sheepdog: add missing .bdrv_has_zero_init
@ 2013-08-06  6:44 Liu Yuan
  2013-08-06  6:53 ` Liu Yuan
  2013-08-06  7:37 ` [Qemu-devel] [sheepdog] " MORITA Kazutaka
  0 siblings, 2 replies; 5+ messages in thread
From: Liu Yuan @ 2013-08-06  6:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, sheepdog, Stefan Hajnoczi

Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Liu Yuan <namei.unix@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,
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] sheepdog: add missing .bdrv_has_zero_init
  2013-08-06  6:44 [Qemu-devel] [PATCH] sheepdog: add missing .bdrv_has_zero_init Liu Yuan
@ 2013-08-06  6:53 ` Liu Yuan
  2013-08-06  7:37 ` [Qemu-devel] [sheepdog] " MORITA Kazutaka
  1 sibling, 0 replies; 5+ messages in thread
From: Liu Yuan @ 2013-08-06  6:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, sheepdog, Stefan Hajnoczi

On Tue, Aug 06, 2013 at 02:44:37PM +0800, Liu Yuan wrote:
> Cc: Kevin Wolf <kwolf@redhat.com>
> Cc: Stefan Hajnoczi <stefanha@redhat.com>
> Signed-off-by: Liu Yuan <namei.unix@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [sheepdog] [PATCH] sheepdog: add missing .bdrv_has_zero_init
  2013-08-06  6:44 [Qemu-devel] [PATCH] sheepdog: add missing .bdrv_has_zero_init Liu Yuan
  2013-08-06  6:53 ` Liu Yuan
@ 2013-08-06  7:37 ` MORITA Kazutaka
  2013-08-06  8:24   ` Kevin Wolf
  1 sibling, 1 reply; 5+ messages in thread
From: MORITA Kazutaka @ 2013-08-06  7:37 UTC (permalink / raw)
  To: Liu Yuan; +Cc: Kevin Wolf, sheepdog, qemu-devel, Stefan Hajnoczi

At Tue,  6 Aug 2013 14:44:37 +0800,
Liu Yuan wrote:
> 
> Cc: Kevin Wolf <kwolf@redhat.com>
> Cc: Stefan Hajnoczi <stefanha@redhat.com>
> Signed-off-by: Liu Yuan <namei.unix@gmail.com>
> ---
>  block/sheepdog.c |    2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [sheepdog] [PATCH] sheepdog: add missing .bdrv_has_zero_init
  2013-08-06  7:37 ` [Qemu-devel] [sheepdog] " MORITA Kazutaka
@ 2013-08-06  8:24   ` Kevin Wolf
  2013-08-06  8:37     ` Liu Yuan
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Wolf @ 2013-08-06  8:24 UTC (permalink / raw)
  To: MORITA Kazutaka; +Cc: Liu Yuan, sheepdog, qemu-devel, Stefan Hajnoczi

Am 06.08.2013 um 09:37 hat MORITA Kazutaka geschrieben:
> At Tue,  6 Aug 2013 14:44:37 +0800,
> Liu Yuan wrote:
> > 
> > Cc: Kevin Wolf <kwolf@redhat.com>
> > Cc: Stefan Hajnoczi <stefanha@redhat.com>
> > Signed-off-by: Liu Yuan <namei.unix@gmail.com>
> > ---
> >  block/sheepdog.c |    2 ++
> >  1 file changed, 2 insertions(+)
> 
> Reviewed-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>

The commit message is lacking. Added this description:

    Commit 3ac21627 changed the behaviour of bdrv_has_zero_init() to default
    to 0. In the review for Sheepdog it turned out that enabling it is safe,
    so that commit updated one BlockDriver definition of sheepdog to use
    bdrv_has_zero_init_1, missed however that there are more BlockDrivers in
    the driver. Fix these now.

And applied the patch to the block branch.

Kevin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [sheepdog] [PATCH] sheepdog: add missing .bdrv_has_zero_init
  2013-08-06  8:24   ` Kevin Wolf
@ 2013-08-06  8:37     ` Liu Yuan
  0 siblings, 0 replies; 5+ messages in thread
From: Liu Yuan @ 2013-08-06  8:37 UTC (permalink / raw)
  To: Kevin Wolf; +Cc: Stefan Hajnoczi, sheepdog, qemu-devel, MORITA Kazutaka

On Tue, Aug 06, 2013 at 10:24:42AM +0200, Kevin Wolf wrote:
> Am 06.08.2013 um 09:37 hat MORITA Kazutaka geschrieben:
> > At Tue,  6 Aug 2013 14:44:37 +0800,
> > Liu Yuan wrote:
> > > 
> > > Cc: Kevin Wolf <kwolf@redhat.com>
> > > Cc: Stefan Hajnoczi <stefanha@redhat.com>
> > > Signed-off-by: Liu Yuan <namei.unix@gmail.com>
> > > ---
> > >  block/sheepdog.c |    2 ++
> > >  1 file changed, 2 insertions(+)
> > 
> > Reviewed-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
> 
> The commit message is lacking. Added this description:
> 
>     Commit 3ac21627 changed the behaviour of bdrv_has_zero_init() to default
>     to 0. In the review for Sheepdog it turned out that enabling it is safe,
>     so that commit updated one BlockDriver definition of sheepdog to use
>     bdrv_has_zero_init_1, missed however that there are more BlockDrivers in
>     the driver. Fix these now.
> 
> And applied the patch to the block branch.

Thanks for your detailed commit log, I should have done it.

Yuan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-06  8:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-06  6:44 [Qemu-devel] [PATCH] sheepdog: add missing .bdrv_has_zero_init Liu Yuan
2013-08-06  6:53 ` Liu Yuan
2013-08-06  7:37 ` [Qemu-devel] [sheepdog] " MORITA Kazutaka
2013-08-06  8:24   ` Kevin Wolf
2013-08-06  8:37     ` Liu Yuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).