Received: from eggs.gnu.org ([2001:4830:134:3::10]:42575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYYPK-000159-Aa for qemu-devel@nongnu.org; Thu, 19 Mar 2015 07:14:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYYPJ-00085i-DX for qemu-devel@nongnu.org; Thu, 19 Mar 2015 07:14:34 -0400 From: Markus Armbruster References: <1426762697-17230-1-git-send-email-kwolf@redhat.com> Date: Thu, 19 Mar 2015 12:14:25 +0100 In-Reply-To: <1426762697-17230-1-git-send-email-kwolf@redhat.com> (Kevin Wolf's message of "Thu, 19 Mar 2015 11:58:17 +0100") Message-ID: <87pp85qlwu.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH for-2.3 v2] raw-posix: Deprecate aio=threads fallback without O_DIRECT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org Kevin Wolf writes: > Currently, if the user requests aio=native, but forgets to choose a > cache mode that sets O_DIRECT, that request is silently ignored and raw > falls back to aio=threads. > > Deprecate that behaviour so we can make it an error in future qemu > versions. > > Signed-off-by: Kevin Wolf > --- > v2: > - Use error_printf() instead of fprintf(stderr, ...) so that the warning will > appear on the HMP monitor instead of stderr for drive_add. > > Markus suggested error_report(), which would have the advantage of displaying > the option string and position in the config file. However, the result was a > line that was so full that it wasn't very prominent as a warning any more. > Making the warning very visible was the reason for using fprintf in v1. > > After thinking more about it, I came to the conclusion that for a deprecation > warning like this, being visible is more important than finding the bad > option quickly. The hope is anyway that nobody runs a setup like this, and > even then the warning will last only for one release before we'll get a real > error. Judgement call, obviously yours to make. Reviewed-by: Markus Armbruster