Received: from eggs.gnu.org ([2001:4830:134:3::10]:50594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUgOG-00069j-VU for qemu-devel@nongnu.org; Wed, 26 Aug 2015 15:29:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUgOC-0005YQ-VZ for qemu-devel@nongnu.org; Wed, 26 Aug 2015 15:29:44 -0400 From: Alberto Garcia In-Reply-To: <55DDD2D2.7060104@redhat.com> References: <1440421537-26477-1-git-send-email-berto@igalia.com> <55DB6880.1050100@redhat.com> <55DDD2D2.7060104@redhat.com> Date: Wed, 26 Aug 2015 21:29:02 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH] block: Override the driver in the filename with the user-specified one List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org On Wed 26 Aug 2015 04:53:06 PM CEST, Max Reitz wrote: > Yet another thing is the problem described in the patch's commit > message. Why and how is the driver option inherited by the snapshot? I think you're right and my description was wrong, this happens before the snapshot is created, when bdrv_image_create() opens the backing image in order to get its size. The command line is simply 'snapshot_blkdev virtio0 new.qcow2', the only requirement is that the original image is opened with driver-specific options. Berto