qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] vmdk: Create streamOptimized as version 3
@ 2015-09-17  5:04 Fam Zheng
  2015-09-17  8:55 ` Kevin Wolf
  2016-03-08  9:37 ` Radoslav Gerganov
  0 siblings, 2 replies; 5+ messages in thread
From: Fam Zheng @ 2015-09-17  5:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, rgerganov, qemu-block

VMware products accept only version 3 for streamOptimized, let's bump
the version.

Reported-by: Radoslav Gerganov <rgerganov@vmware.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/vmdk.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/block/vmdk.c b/block/vmdk.c
index be0d640..37326c3 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
@@ -1651,7 +1651,13 @@ static int vmdk_create_extent(const char *filename, int64_t filesize,
     }
     magic = cpu_to_be32(VMDK4_MAGIC);
     memset(&header, 0, sizeof(header));
-    header.version = zeroed_grain ? 2 : 1;
+    if (compress) {
+        header.version = 3;
+    } else if (zeroed_grain) {
+        header.version = 2;
+    } else {
+        header.version = 1;
+    }
     header.flags = VMDK4_FLAG_RGD | VMDK4_FLAG_NL_DETECT
                    | (compress ? VMDK4_FLAG_COMPRESS | VMDK4_FLAG_MARKER : 0)
                    | (zeroed_grain ? VMDK4_FLAG_ZERO_GRAIN : 0);
-- 
2.4.3

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

* Re: [Qemu-devel] [PATCH] vmdk: Create streamOptimized as version 3
  2015-09-17  5:04 [Qemu-devel] [PATCH] vmdk: Create streamOptimized as version 3 Fam Zheng
@ 2015-09-17  8:55 ` Kevin Wolf
  2016-01-20  4:28   ` Fam Zheng
  2016-03-08  9:37 ` Radoslav Gerganov
  1 sibling, 1 reply; 5+ messages in thread
From: Kevin Wolf @ 2015-09-17  8:55 UTC (permalink / raw)
  To: Fam Zheng; +Cc: qemu-devel, qemu-block, rgerganov

Am 17.09.2015 um 07:04 hat Fam Zheng geschrieben:
> VMware products accept only version 3 for streamOptimized, let's bump
> the version.
> 
> Reported-by: Radoslav Gerganov <rgerganov@vmware.com>
> Signed-off-by: Fam Zheng <famz@redhat.com>

Radoslav, can I have your Reviewed-by and/or Tested-by for this patch?

Kevin

>  block/vmdk.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/block/vmdk.c b/block/vmdk.c
> index be0d640..37326c3 100644
> --- a/block/vmdk.c
> +++ b/block/vmdk.c
> @@ -1651,7 +1651,13 @@ static int vmdk_create_extent(const char *filename, int64_t filesize,
>      }
>      magic = cpu_to_be32(VMDK4_MAGIC);
>      memset(&header, 0, sizeof(header));
> -    header.version = zeroed_grain ? 2 : 1;
> +    if (compress) {
> +        header.version = 3;
> +    } else if (zeroed_grain) {
> +        header.version = 2;
> +    } else {
> +        header.version = 1;
> +    }
>      header.flags = VMDK4_FLAG_RGD | VMDK4_FLAG_NL_DETECT
>                     | (compress ? VMDK4_FLAG_COMPRESS | VMDK4_FLAG_MARKER : 0)
>                     | (zeroed_grain ? VMDK4_FLAG_ZERO_GRAIN : 0);
> -- 
> 2.4.3
> 

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

* Re: [Qemu-devel] [PATCH] vmdk: Create streamOptimized as version 3
  2015-09-17  8:55 ` Kevin Wolf
@ 2016-01-20  4:28   ` Fam Zheng
  2016-01-20 10:31     ` Kevin Wolf
  0 siblings, 1 reply; 5+ messages in thread
From: Fam Zheng @ 2016-01-20  4:28 UTC (permalink / raw)
  To: Kevin Wolf; +Cc: qemu-devel, qemu-block, rgerganov

On Thu, 09/17 10:55, Kevin Wolf wrote:
> Am 17.09.2015 um 07:04 hat Fam Zheng geschrieben:
> > VMware products accept only version 3 for streamOptimized, let's bump
> > the version.
> > 
> > Reported-by: Radoslav Gerganov <rgerganov@vmware.com>
> > Signed-off-by: Fam Zheng <famz@redhat.com>
> 
> Radoslav, can I have your Reviewed-by and/or Tested-by for this patch?

Kevin, RHBZ 1299116 confirms that using version 3 for streamOptimized will make
VMware products happy. Could you apply this patch?

Fam

> 
> Kevin
> 
> >  block/vmdk.c | 8 +++++++-
> >  1 file changed, 7 insertions(+), 1 deletion(-)
> > 
> > diff --git a/block/vmdk.c b/block/vmdk.c
> > index be0d640..37326c3 100644
> > --- a/block/vmdk.c
> > +++ b/block/vmdk.c
> > @@ -1651,7 +1651,13 @@ static int vmdk_create_extent(const char *filename, int64_t filesize,
> >      }
> >      magic = cpu_to_be32(VMDK4_MAGIC);
> >      memset(&header, 0, sizeof(header));
> > -    header.version = zeroed_grain ? 2 : 1;
> > +    if (compress) {
> > +        header.version = 3;
> > +    } else if (zeroed_grain) {
> > +        header.version = 2;
> > +    } else {
> > +        header.version = 1;
> > +    }
> >      header.flags = VMDK4_FLAG_RGD | VMDK4_FLAG_NL_DETECT
> >                     | (compress ? VMDK4_FLAG_COMPRESS | VMDK4_FLAG_MARKER : 0)
> >                     | (zeroed_grain ? VMDK4_FLAG_ZERO_GRAIN : 0);
> > -- 
> > 2.4.3
> > 

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

* Re: [Qemu-devel] [PATCH] vmdk: Create streamOptimized as version 3
  2016-01-20  4:28   ` Fam Zheng
@ 2016-01-20 10:31     ` Kevin Wolf
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Wolf @ 2016-01-20 10:31 UTC (permalink / raw)
  To: Fam Zheng; +Cc: qemu-devel, qemu-block, rgerganov

Am 20.01.2016 um 05:28 hat Fam Zheng geschrieben:
> On Thu, 09/17 10:55, Kevin Wolf wrote:
> > Am 17.09.2015 um 07:04 hat Fam Zheng geschrieben:
> > > VMware products accept only version 3 for streamOptimized, let's bump
> > > the version.
> > > 
> > > Reported-by: Radoslav Gerganov <rgerganov@vmware.com>
> > > Signed-off-by: Fam Zheng <famz@redhat.com>
> > 
> > Radoslav, can I have your Reviewed-by and/or Tested-by for this patch?
> 
> Kevin, RHBZ 1299116 confirms that using version 3 for streamOptimized will make
> VMware products happy. Could you apply this patch?

Sorry, I completely forgot about this patch. You could even have pinged
me earlier when it became apparent that Radoslav wouldn't reply.

Thanks, applied to the block branch.

Kevin

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

* Re: [Qemu-devel] [PATCH] vmdk: Create streamOptimized as version 3
  2015-09-17  5:04 [Qemu-devel] [PATCH] vmdk: Create streamOptimized as version 3 Fam Zheng
  2015-09-17  8:55 ` Kevin Wolf
@ 2016-03-08  9:37 ` Radoslav Gerganov
  1 sibling, 0 replies; 5+ messages in thread
From: Radoslav Gerganov @ 2016-03-08  9:37 UTC (permalink / raw)
  To: Fam Zheng, qemu-devel; +Cc: Kevin Wolf, qemu-block

On 17.09.2015 08:04, Fam Zheng wrote:
> VMware products accept only version 3 for streamOptimized, let's bump
> the version.
> 
> Reported-by: Radoslav Gerganov <rgerganov@vmware.com>
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
>  block/vmdk.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)

Hi Fam,

I am really sorry for the late reply.  Your patch looks great, I confirm that
VMware products expect VMDK version 3 for streamOptimized images.

I will try to follow-up the VMDK work promptly from now on.  Please keep
adding me in CC.  Thanks! 

-Rado

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

end of thread, other threads:[~2016-03-08  9:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-17  5:04 [Qemu-devel] [PATCH] vmdk: Create streamOptimized as version 3 Fam Zheng
2015-09-17  8:55 ` Kevin Wolf
2016-01-20  4:28   ` Fam Zheng
2016-01-20 10:31     ` Kevin Wolf
2016-03-08  9:37 ` Radoslav Gerganov

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).