Received: from eggs.gnu.org ([2001:4830:134:3::10]:51797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4SSW-0002rh-L2 for qemu-devel@nongnu.org; Wed, 31 Jul 2013 05:12:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4SSQ-0006YE-If for qemu-devel@nongnu.org; Wed, 31 Jul 2013 05:12:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4SSQ-0006Y1-BV for qemu-devel@nongnu.org; Wed, 31 Jul 2013 05:12:34 -0400 Date: Wed, 31 Jul 2013 11:12:27 +0200 From: Kevin Wolf Message-ID: <20130731091227.GE3090@dhcp-200-207.str.redhat.com> References: <1374762197-7261-1-git-send-email-pbonzini@redhat.com> <1374762197-7261-19-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1374762197-7261-19-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 18/19] block: add default get_block_status implementation for protocols List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: pl@kamp.de, qemu-devel@nongnu.org, stefanha@redhat.com Am 25.07.2013 um 16:23 hat Paolo Bonzini geschrieben: > Protocols return raw data, so you can assume the offsets to pass > through unchanged. > > Reviewed-by: Eric Blake > Signed-off-by: Paolo Bonzini Not really objecting, but is this useful? In formats, BDRV_BLOCK_OFFSET_VALID means that the given offset is valid for bs->file, which is something that protocols simply don't have. You can do it like you do here, but actually this information is redundant. Do you make use of it for anything? Kevin