Received: from eggs.gnu.org ([2001:4830:134:3::10]:53893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzRgK-0008Mo-L7 for qemu-devel@nongnu.org; Tue, 24 Jun 2014 10:26:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzRgD-0000VV-6u for qemu-devel@nongnu.org; Tue, 24 Jun 2014 10:26:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzRgC-0000VN-VD for qemu-devel@nongnu.org; Tue, 24 Jun 2014 10:26:37 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5OEQaBj015662 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 24 Jun 2014 10:26:36 -0400 Date: Tue, 24 Jun 2014 16:26:34 +0200 From: Kevin Wolf Message-ID: <20140624142634.GJ3458@noname.redhat.com> References: <1403612798-25167-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1403612798-25167-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 0/4] mirror: Fix behavior for zero byte image List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-devel@nongnu.org, stefanha@redhat.com Am 24.06.2014 um 14:26 hat Fam Zheng geschrieben: > The current behavior of mirroring zero byte image is slightly different from > non-zero image: the BLOCK_JOB_READY event is skipped and job is completed > immediately. This is not a big problem for human user but only makes management > software harder to write. Since we are focusing on an good API instead of UI, > let's make the behavior more consistent and predictable. > > The first patch fixes the behavior. The following two patches add test case for > the involved code path. Thanks, applied to the block branch. Kevin