diff options
author | Kevin Wolf <kwolf@redhat.com> | 2011-01-26 16:56:48 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-01-31 10:03:00 +0100 |
commit | 5ea929e3d13622e5d06ca8795819f1590644cda2 (patch) | |
tree | 1aba3562b30cf62ac6a8fdc5f313f4a90e816c88 /block/dmg.c | |
parent | a9c49a6b023fd3706002fd8d549c58f0343932f8 (diff) | |
download | hqemu-5ea929e3d13622e5d06ca8795819f1590644cda2.zip hqemu-5ea929e3d13622e5d06ca8795819f1590644cda2.tar.gz |
qcow2: Add bdrv_discard support
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>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'block/dmg.c')
0 files changed, 0 insertions, 0 deletions