Received: from eggs.gnu.org ([2001:4830:134:3::10]:59558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLs22-0003NF-SZ for qemu-devel@nongnu.org; Wed, 20 Jan 2016 07:38:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLs22-0000MT-4W for qemu-devel@nongnu.org; Wed, 20 Jan 2016 07:38:38 -0500 Date: Wed, 20 Jan 2016 13:38:28 +0100 From: Kevin Wolf Message-ID: <20160120123828.GB4793@noname.redhat.com> References: <1453263681-22576-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1453263681-22576-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5 0/2] block: Reject negative values for throttling options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: berto@igalia.com, qemu-block@nongnu.org, Markus Armbruster , qemu-devel@nongnu.org, mreitz@redhat.com Am 20.01.2016 um 05:21 hat Fam Zheng geschrieben: > v5: Add valid value testing in iotests. [Berto] > Add details in commit message. [Markus] > Use "%lld" in format string. [Markus] > Fix ")" -> "]" in error message. [Kevin] > > Now the negative values are silently converted to a huge positive number > because we are doing implicit casting from uint64_t to double. Fix it and add a > test case (this was once fixed in 7d81c1413c9 but regressed when the block > device option parsing code was changed). Thanks, applied to the block branch. Kevin