[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] rbd: add discard support
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] rbd: add discard support |
Date: |
Tue, 1 May 2012 09:39:51 +0100 |
On Tue, May 1, 2012 at 7:16 AM, Josh Durgin <address@hidden> 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 qemu_rbd_aio_discard entirely,
> so the old behavior is preserved.
>
> Signed-off-by: Josh Durgin <address@hidden>
> ---
> block/rbd.c | 89 ++++++++++++++++++++++++++++++++++++++++++++++++----------
> 1 files changed, 73 insertions(+), 16 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>