summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJosh Durgin2012-05-01 08:16:45 +0200
committerKevin Wolf2012-05-02 18:41:42 +0200
commit787f31330eb51ef7621d7c316b90262c7bb5d6d3 (patch)
treea1e2f657dfafcfbd1e6fe8fde1ccbb8c95d14dec /scripts
parentqcow2: fix the return value -ENOENT -> -EEXIST (diff)
downloadqemu-787f31330eb51ef7621d7c316b90262c7bb5d6d3.tar.gz
qemu-787f31330eb51ef7621d7c316b90262c7bb5d6d3.tar.xz
qemu-787f31330eb51ef7621d7c316b90262c7bb5d6d3.zip
rbd: add discard support
Change the write flag to an operation type in RBDAIOCB, and make the buffer optional since discard doesn't use it. Discard is first included in librbd 0.1.2 (which is in Ceph 0.46). If librbd is too old, leave out qemu_rbd_aio_discard entirely, so the old behavior is preserved. Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions