From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdAmB-0002Sc-CI for qemu-devel@nongnu.org; Mon, 13 Feb 2017 02:10:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdAm8-0008Qp-6k for qemu-devel@nongnu.org; Mon, 13 Feb 2017 02:10:19 -0500 Received: from mail-db5eur01on0136.outbound.protection.outlook.com ([104.47.2.136]:45037 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cdAm7-0008QT-LW for qemu-devel@nongnu.org; Mon, 13 Feb 2017 02:10:16 -0500 References: <1486134413-19988-1-git-send-email-den@openvz.org> <5909b505-fecb-fa98-6ae7-190b846add4c@openvz.org> From: "Denis V. Lunev" Message-ID: <169f96e8-0ca5-264d-350a-7f085905bd5b@virtuozzo.com> Date: Mon, 13 Feb 2017 10:10:06 +0300 MIME-Version: 1.0 In-Reply-To: <5909b505-fecb-fa98-6ae7-190b846add4c@openvz.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/1] mirror: do not increase offset during initial zero_or_discard phase - pls consider this as V3 patch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anton Nefedov , Jeff Cody , Kevin Wolf , Max Reitz On 02/03/2017 06:08 PM, Denis V. Lunev wrote: > On 02/03/2017 06:06 PM, Denis V. Lunev wrote: >> From: Anton Nefedov >> >> If explicit zeroing out before mirroring is required for the target image, >> it moves the block job offset counter to EOF, then offset and len counters >> count the image size twice. There is no harm but stats are confusing, >> specifically the progress of the operation is always reported as 99% by >> management tools. >> >> The patch skips offset increase for the first "technical" pass over the >> image. This should not cause any further harm. >> >> Signed-off-by: Anton Nefedov >> Signed-off-by: Denis V. Lunev >> Reviewed-by: Eric Blake >> Reviewed-by: Stefan Hajnoczi >> CC: Jeff Cody >> CC: Kevin Wolf >> CC: Max Reitz > actually this is V3 patch. Sorry for broken subject. > > Den ping