Received: from eggs.gnu.org ([2001:4830:134:3::10]:45840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYxKD-0006WJ-Ls for qemu-devel@nongnu.org; Fri, 29 Jun 2018 13:36:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYxKC-0005av-R4 for qemu-devel@nongnu.org; Fri, 29 Jun 2018 13:36:49 -0400 References: <20180629151524.138542-1-vsementsov@virtuozzo.com> From: Vladimir Sementsov-Ogievskiy Message-ID: <3e512e87-c9ba-e2b3-8f2f-8c4991fec522@virtuozzo.com> Date: Fri, 29 Jun 2018 20:36:34 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [Qemu-devel] [PATCH v2 0/3] image fleecing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , qemu-devel@nongnu.org, qemu-block@nongnu.org Cc: eblake@redhat.com, armbru@redhat.com, kwolf@redhat.com, mreitz@redhat.com, famz@redhat.com, den@openvz.org 29.06.2018 19:38, John Snow wrote: > > On 06/29/2018 11:15 AM, Vladimir Sementsov-Ogievskiy wrote: >> Image fleecing, or external (or pull) backup scheme is near to complete. >> Here is forgotten test, written by Fam in far 2014, with two my necessary >> patches, previously sent separately, so the series are called "v2" >> >> v2: >> 01: add transaction support >> 02: rebase on master, drop "'fleecing-filter': 'BlockdevCreateNotSupported'" >> add empty .bdrv_close >> add default .bdrv_child_perm >> 03: comparing to [PATCH v20 15/15] qemu-iotests: Image fleecing test case 08: >> add -f iotests.imgfmt to qemu_io >> fix target_img to be always qcow2 >> add -r to qemu_io for nbd >> add fleecing-filter layer >> wrap long lines >> >> Fam Zheng (1): >> qemu-iotests: Image fleecing test case 222 >> >> Vladimir Sementsov-Ogievskiy (2): >> blockdev-backup: enable non-root nodes for backup source >> block/fleecing-filter: new filter driver for fleecing >> >> qapi/block-core.json | 6 ++- >> block/fleecing-filter.c | 80 ++++++++++++++++++++++++++++++++ >> blockdev.c | 4 +- >> block/Makefile.objs | 1 + >> tests/qemu-iotests/222 | 112 +++++++++++++++++++++++++++++++++++++++++++++ >> tests/qemu-iotests/222.out | 5 ++ >> tests/qemu-iotests/group | 1 + >> 7 files changed, 205 insertions(+), 4 deletions(-) >> create mode 100644 block/fleecing-filter.c >> create mode 100755 tests/qemu-iotests/222 >> create mode 100644 tests/qemu-iotests/222.out >> > Have you been able to reproduce a race that proves the filter is > necessary, or can you explain how it might happen? No. But same logic is in block/replication, and I remember, that I discussed it on list, and the case I've described in 02 is not my idea. > > I think I mentioned it once as a possibility but I hadn't convinced myself. -- Best regards, Vladimir