From: Fam Zheng <famz@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, rgerganov@vmware.com
Subject: Re: [Qemu-devel] [PATCH] vmdk: Create streamOptimized as version 3
Date: Wed, 20 Jan 2016 12:28:01 +0800 [thread overview]
Message-ID: <20160120042801.GB3164@ad.usersys.redhat.com> (raw)
In-Reply-To: <20150917085555.GB4884@noname.redhat.com>
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
> >
next prev parent reply other threads:[~2016-01-20 4:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2016-01-20 10:31 ` Kevin Wolf
2016-03-08 9:37 ` Radoslav Gerganov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160120042801.GB3164@ad.usersys.redhat.com \
--to=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=rgerganov@vmware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.