qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: kwolf@redhat.com, pl@kamp.de, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] vmdk: Allow vmdk_create to work with protocol
Date: Fri, 20 Dec 2013 09:17:14 +0100	[thread overview]
Message-ID: <20131220081714.GA15789@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1387504128-15347-1-git-send-email-famz@redhat.com>

On Fri, Dec 20, 2013 at 09:48:48AM +0800, Fam Zheng wrote:
> This improves vmdk_create to use bdrv_* functions to replace qemu_open
> and other fd functions. The error handling are improved as well. One
> difference is that bdrv_pwrite will round up buffer to sectors, so for
> description file, an extra bdrv_truncate is used in the end to drop
> inding zeros.
> 
> Notes:
> 
>  - A bonus bug fix is correct endian is used in initializing GD entries.
> 
>  - ROUND_UP and DIV_ROUND_UP are used where possible.
> 
> I tested that new code produces exactly the same file as previously.
> 
> Signed-off-by: Fam Zheng <famz@redhat.com>
> 
> ---
> v2: Address Stefan's comments:
> 
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
>  block/vmdk.c | 164 ++++++++++++++++++++++++++++++++++-------------------------
>  1 file changed, 95 insertions(+), 69 deletions(-)

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan

  reply	other threads:[~2013-12-20  8:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-20  1:48 [Qemu-devel] [PATCH v2] vmdk: Allow vmdk_create to work with protocol Fam Zheng
2013-12-20  8:17 ` Stefan Hajnoczi [this message]
2013-12-20 10:16 ` Peter Lieven

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=20131220081714.GA15789@stefanha-thinkpad.redhat.com \
    --to=stefanha@redhat.com \
    --cc=famz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=pl@kamp.de \
    --cc=qemu-devel@nongnu.org \
    /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 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).