Re: [Qemu-devel] [RFC PATCH 13/17] block: fallback from discard to writes

2012-03-24 Thread Christoph Hellwig
On Thu, Mar 08, 2012 at 06:15:13PM +0100, Paolo Bonzini wrote: > Allow discard to fail, and fall back to the write operation. This > is needed because there's no simple way to probe for availability > of FALLOC_FL_PUNCH_HOLE. So you switch on advertising TRIM support in the patch before, and then

[Qemu-devel] [RFC PATCH 13/17] block: fallback from discard to writes

2012-03-08 Thread Paolo Bonzini
Allow discard to fail, and fall back to the write operation. This is needed because there's no simple way to probe for availability of FALLOC_FL_PUNCH_HOLE. Signed-off-by: Paolo Bonzini --- block.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c in