qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 05/19] block: handle ENOTSUP from discard in


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v3 05/19] block: handle ENOTSUP from discard in generic code
Date: Mon, 25 Nov 2013 11:16:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9

Il 25/11/2013 11:06, Peter Lieven ha scritto:
> wouldn't it make sense to return -ENOTSUP in other drivers a well if the
> operation is not supported and not return 0?

Yes; patches are welcome. :)

(I have a patch for block/iscsi.c that handles LBPU=1/LBPWS=0, and one
of the things it does is "return 0" -> "return -ENOTSUP" for consistency
between iscsi_co_discard and iscsi_co_write_zeroes).

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]