diff options
author | Josh Durgin <josh.durgin@dreamhost.com> | 2012-04-30 23:16:45 -0700 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-05-02 18:41:42 +0200 |
commit | 787f31330eb51ef7621d7c316b90262c7bb5d6d3 (patch) | |
tree | a1e2f657dfafcfbd1e6fe8fde1ccbb8c95d14dec /hw/ide/core.c | |
parent | 647cc472232608f268fe48da78bea81e6d01b1ea (diff) |
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 'hw/ide/core.c')
0 files changed, 0 insertions, 0 deletions