vmdk: Create streamOptimized as version 3
PATCH 1/1 vmdk: Create streamOptimized as version 3
VMware products accept only version 3 for streamOptimized, let's bump the version.
--- block/vmdk.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
block/vmdk.c +7 -1
@@ -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 );
Signature · 1 line
2.4.3
Am 17.09.2015 um 07:04 hat Fam Zheng geschrieben:
Quoted 5 lines
VMware products accept only version 3 for streamOptimized, let's bump the version.
Reported-by Radoslav Gerganov <[email protected]>Signed-off-by Fam Zheng <[email protected]>
Radoslav, can I have your Reviewed-by and/or Tested-by for this patch?
Kevin
Quoted 25 lines
block/vmdk.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)block/vmdk.c +7
-1@@ -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 );Signature · 1 line
2.4.3
Quoted 8 lines · Kevin Wolf
Am 17.09.2015 um 07:04 hat Fam Zheng geschrieben:
Quoted 5 lines
VMware products accept only version 3 for streamOptimized, let's bump the version.
Reported-by Radoslav Gerganov <[email protected]>Signed-off-by Fam Zheng <[email protected]>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
Quoted 28 lines
Kevin
Quoted 25 lines
block/vmdk.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)block/vmdk.c +7
-1@@ -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 );Signature · 1 line
2.4.3
Kevin Wolf
AppliedAm 20.01.2016 um 05:28 hat Fam Zheng geschrieben:
Quoted 5 lines · Kevin Wolf
Quoted 4 lines
Am 17.09.2015 um 07:04 hat Fam Zheng geschrieben:
Quoted 3 lines
VMware products accept only version 3 for streamOptimized, let's bump the version.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Reported-by Radoslav Gerganov <[email protected]>Signed-off-by Fam Zheng <[email protected]>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
Quoted 8 lines · Fam Zheng
VMware products accept only version 3 for streamOptimized, let's bump the version.
Reported-by Radoslav Gerganov <[email protected]>Signed-off-by Fam Zheng <[email protected]>--- 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