From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bopQA-0005Yf-T7 for qemu-devel@nongnu.org; Tue, 27 Sep 2016 06:15:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bopQ6-00057q-WA for qemu-devel@nongnu.org; Tue, 27 Sep 2016 06:15:30 -0400 Date: Tue, 27 Sep 2016 06:15:11 -0400 (EDT) From: Paolo Bonzini Message-ID: <912490881.3041685.1474971311025.JavaMail.zimbra@redhat.com> In-Reply-To: <27bd2bc9-b879-81ef-c7b6-31335e6be84f@virtuozzo.com> References: <1474893981-5302-1-git-send-email-vsementsov@virtuozzo.com> <27bd2bc9-b879-81ef-c7b6-31335e6be84f@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] proto: add 'shift' extension. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: Vladimir Sementsov-Ogievskiy , qemu-devel@nongnu.org, qemu-block@nongnu.org, nbd-general@lists.sourceforge.net, alex@alex.org.uk, eblake@redhat.com, kwolf@redhat.com, stefanha@redhat.com, w@uter.be > We could go in a different direction and export flag > 'has_zero_init' which will report that the storage is > initialized with all zeroes at the moment. In this > case mirroring code will not fall into this > branch. Why don't you add the zero_init flag to QEMU's NBD driver instead? Thanks, Paolo