From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1at8h4-0001Pa-5T for qemu-devel@nongnu.org; Thu, 21 Apr 2016 03:06:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1at8h3-00023R-7g for qemu-devel@nongnu.org; Thu, 21 Apr 2016 03:06:30 -0400 References: <1460867433-13251-1-git-send-email-rkx1209dev@gmail.com> From: "Denis V. Lunev" Message-ID: <571878DE.80405@virtuozzo.com> Date: Thu, 21 Apr 2016 09:53:18 +0300 MIME-Version: 1.0 In-Reply-To: <1460867433-13251-1-git-send-email-rkx1209dev@gmail.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3] qemu-img: check block status of backing file when converting. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ren Kimura , mreitz@redhat.com Cc: kwolf@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org On 04/17/2016 07:30 AM, Ren Kimura wrote: > When converting images, check the block status of its backing file chain > to avoid needlessly reading zeros. > > Signed-off-by: Ren Kimura IMHO bdrv_get_block_status_above(bs, NULL, ...) should do the job without recursion.