qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] qcow2: Add bdrv_discard support


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v2] qcow2: Add bdrv_discard support
Date: Fri, 28 Jan 2011 12:46:25 +0000

On Fri, Jan 28, 2011 at 11:41 AM, Kevin Wolf <address@hidden> 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 <address@hidden>
> ---
>
> 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 <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]