Received: from eggs.gnu.org ([2001:4830:134:3::10]:45343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDBFp-0001sO-HA for qemu-devel@nongnu.org; Mon, 30 Apr 2018 12:02:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDBFo-0003mC-No for qemu-devel@nongnu.org; Mon, 30 Apr 2018 12:02:17 -0400 References: <20180428163442.6238-1-mreitz@redhat.com> <20180428163442.6238-3-mreitz@redhat.com> From: Eric Blake Message-ID: Date: Mon, 30 Apr 2018 11:01:59 -0500 MIME-Version: 1.0 In-Reply-To: <20180428163442.6238-3-mreitz@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/2] iotests: Repairing error during snapshot deletion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , qemu-devel@nongnu.org On 04/28/2018 11:34 AM, Max Reitz wrote: > This adds a test for an I/O error during snapshot deletion, and maybe > more importantly, for how to repair the resulting image. If the > snapshot has been deleted before the error occurs, the only negative > result will be leaked clusters -- and those should be repairable with > qemu-img check -r leaks. > > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/217 | 89 ++++++++++++++++++++++++++++++++++++++++++++++ > tests/qemu-iotests/217.out | 42 ++++++++++++++++++++++ > tests/qemu-iotests/group | 1 + > 3 files changed, 132 insertions(+) > create mode 100755 tests/qemu-iotests/217 > create mode 100644 tests/qemu-iotests/217.out > > + > +# Internal snapshots are (currently) impossible with refcount_bits=1 > +_unsupported_imgopts 'refcount_bits=1[^0-9]' > + And even if they are made possible (by cloning clusters instead of incrementing refcounts), you STILL need a refcount > 1 to test the particular repair functionality just fixed. Up to you if you want to reword that comment a bit. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org