qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] qcow2: Add bdrv_discard support
Date: Fri, 28 Jan 2011 12:46:25 +0000	[thread overview]
Message-ID: <AANLkTiki_0uWjdM+YxDDjoDZ71NS2nq99a3kWNpeV6w=@mail.gmail.com> (raw)
In-Reply-To: <1296214910-5131-1-git-send-email-kwolf@redhat.com>

On Fri, Jan 28, 2011 at 11:41 AM, Kevin Wolf <kwolf@redhat.com> wrote:
> This adds a bdrv_discard function to qcow2 that frees the discarded clusters.
> It does not yet pass the discard on to the underlying file system driver, but
> the space can be reused by future writes to the image.
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
>
> v2:
> - Added offset > end_offset check
>
>  block/qcow2-cluster.c |   82 +++++++++++++++++++++++++++++++++++++++++++++++++
>  block/qcow2.c         |    8 +++++
>  block/qcow2.h         |    2 +
>  3 files changed, 92 insertions(+), 0 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>

  reply	other threads:[~2011-01-28 12:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28 11:41 [Qemu-devel] [PATCH v2] qcow2: Add bdrv_discard support Kevin Wolf
2011-01-28 12:46 ` Stefan Hajnoczi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-08-24 16:38 Jun Li
2014-08-27 14:12 ` Stefan Hajnoczi

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='AANLkTiki_0uWjdM+YxDDjoDZ71NS2nq99a3kWNpeV6w=@mail.gmail.com' \
    --to=stefanha@gmail.com \
    --cc=kwolf@redhat.com \
    --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).