Received: from eggs.gnu.org ([2001:4830:134:3::10]:50971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm1ey-0002vc-Rt for qemu-devel@nongnu.org; Tue, 13 Oct 2015 11:38:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm1eu-0000l4-Jq for qemu-devel@nongnu.org; Tue, 13 Oct 2015 11:38:40 -0400 Date: Tue, 13 Oct 2015 16:38:30 +0100 From: Stefan Hajnoczi Message-ID: <20151013153830.GI3057@stefanha-thinkpad.redhat.com> References: <87909e13adeb2eb2c71d6613b40d3c9b534db9eb.1443793122.git.berto@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87909e13adeb2eb2c71d6613b40d3c9b534db9eb.1443793122.git.berto@igalia.com> Subject: Re: [Qemu-devel] [PATCH v2 06/22] block: Add "supports_stats" field to BlockStats List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia Cc: Kevin Wolf , qemu-block@nongnu.org, Markus Armbruster , qemu-devel@nongnu.org, Max Reitz On Fri, Oct 02, 2015 at 05:26:16PM +0300, Alberto Garcia wrote: > query-blockstats always returns a BlockDeviceStats structure for each > BDS, regardless of whether it implements accounting or not. Since the > field is mandatory there's no way to tell that from the values alone. > > This field solves that problem by indicating which BDSs support I/O > accounting. I'm not sure I understand the problem. If I/O accounting isn't being used then all fields will be 0?