Received: from eggs.gnu.org ([2001:4830:134:3::10]:44147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtY9g-0002gd-0U for qemu-devel@nongnu.org; Tue, 03 Nov 2015 04:45:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtY9c-0000Ka-Oa for qemu-devel@nongnu.org; Tue, 03 Nov 2015 04:45:27 -0500 From: Alberto Garcia In-Reply-To: <56379D6A.3000101@redhat.com> References: <44b88beb06a7c6086753fcc65770db826472b8cd.1446465949.git.berto@igalia.com> <5637983D.8090303@redhat.com> <56379D6A.3000101@redhat.com> Date: Tue, 03 Nov 2015 10:45:22 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v2 2/2] block: test 'blockdev-snapshot' using a file BDS as the overlay List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , Max Reitz , qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org On Mon 02 Nov 2015 06:29:14 PM CET, Eric Blake wrote: >>> @@ -103,7 +103,8 @@ function add_snapshot_image() >>> { 'options': >>> { 'driver': 'qcow2', 'node-name': 'snap_"${1}"', "${extra_params}" >>> 'file': >>> - { 'driver': 'file', 'filename': '"${snapshot_file}"' } } } }" >>> + { 'driver': 'file', 'filename': '"${snapshot_file}"', >>> + 'node-name': 'file_"${1}"' } } } }" >> >> Pre-existing, but do those "" actually do anything? >> > > Actually, the "" are wrong. Look at the full context: we have: > > cmd="..."${snapshot_file}"..." > > which means the expansion of $snapshot_file is _unquoted_. Not really, it's quoted in all cases: 'node-name': 'snap_"${1}"' 'filename': '"${snapshot_file}"' 'node-name': 'file_"${1}"' But it's true that the double quotes don't do anything so I'll remove them. Berto