Re: [Qemu-devel] [PATCH] rbd: add discard support

2012-05-02 Thread Kevin Wolf
Am 01.05.2012 10:39, schrieb Stefan Hajnoczi: On Tue, May 1, 2012 at 7:16 AM, Josh Durgin josh.dur...@dreamhost.com wrote: 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

[Qemu-devel] [PATCH] rbd: add discard support

2012-05-01 Thread Josh Durgin
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:

Re: [Qemu-devel] [PATCH] rbd: add discard support

2012-05-01 Thread Stefan Hajnoczi
On Tue, May 1, 2012 at 7:16 AM, Josh Durgin josh.dur...@dreamhost.com wrote: 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