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: Jun Li
Subject: Re: [Qemu-devel] [PATCH v2] qcow2: Add bdrv_discard support
Date: Mon, 25 Aug 2014 00:38:06 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0

Hi Kevin and Stefan,

As the realize of bdrv_discard, and this patch has been received, but I have some question.

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.

Above content is on url: https://lists.gnu.org/archive/html/qemu-devel/2011-01/msg03100.html

I have following question:

Why bdrv_discard does not yet pass the discard on to the underlying file system driver? And this exist a potential issue: host cluster leak for qcow2. As qcow2 image can be created on RAW disk, so this is not just "does not yet pass the discard on to the underlying file system driver". Could you give some explanation why do not realize this function? Thx.

As I am trying to realize qcow2 shrinking, but hit bdrv_discard can not release the free cluster on host.


Best Regards,
Jun Li





reply via email to

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