Received: from eggs.gnu.org ([2001:4830:134:3::10]:32834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVEY5-0006YE-P0 for qemu-devel@nongnu.org; Thu, 04 Aug 2016 05:02:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVEY1-0004Vk-Nz for qemu-devel@nongnu.org; Thu, 04 Aug 2016 05:02:40 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:46211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVEY1-0004VW-EZ for qemu-devel@nongnu.org; Thu, 04 Aug 2016 05:02:37 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u748x9Fj043290 for ; Thu, 4 Aug 2016 05:02:36 -0400 Received: from e06smtp09.uk.ibm.com (e06smtp09.uk.ibm.com [195.75.94.105]) by mx0a-001b2d01.pphosted.com with ESMTP id 24kkaj13yy-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 04 Aug 2016 05:02:36 -0400 Received: from localhost by e06smtp09.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 4 Aug 2016 10:02:33 +0100 From: Sascha Silbe In-Reply-To: References: <1470229005-152704-1-git-send-email-vsementsov@virtuozzo.com> <1470229005-152704-3-git-send-email-vsementsov@virtuozzo.com> <87d1lpdgi9.fsf@oc4731375738.ibm.com> Date: Thu, 04 Aug 2016 11:02:28 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <871t24dhzv.fsf@oc4731375738.ibm.com> Subject: Re: [Qemu-devel] [PATCH 2/2] iotests: fix 109 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , Vladimir Sementsov-Ogievskiy , qemu-block@nongnu.org, qemu-devel@nongnu.org Cc: kwolf@redhat.com, famz@redhat.com, jcody@redhat.com, stefanha@redhat.com, pbonzini@redhat.com, den@openvz.org Dear Max, Max Reitz writes: > On 03.08.2016 17:22, Sascha Silbe wrote: [...] >> What are the exact semantics of the "offset" field for >> BLOCK_JOB_COMPLETED? >>=20 >> docs/qmp-events.txt is rather vague. As an API consumer I'd have assumed >> that everything up to offset has been completed successfully. If that >> interpretation is correct, offset must be 0 for this test because the >> very first sector wasn't mirrored successfully. > > As far as I'm aware, it doesn't have any real semantics besides the fact > that $offset / $len is the progress of the block job; so it's the offset > "in the job", but not the offset in the source disk. Ok. Would be nice to mention that in docs/qmp-events.txt, to avoid API consumers relying on more exact semantics (resuming at the block after offset to step over error locations for example). The name 'offset' is pretty suggestive... Sascha --=20 Softwareentwicklung Sascha Silbe, Niederhofenstra=C3=9Fe 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641