Received: from eggs.gnu.org ([2001:4830:134:3::10]:55358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewRwT-0002aK-DU for qemu-devel@nongnu.org; Thu, 15 Mar 2018 08:25:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewRwP-0000AZ-In for qemu-devel@nongnu.org; Thu, 15 Mar 2018 08:25:09 -0400 References: <20180315034507.6341-1-famz@redhat.com> From: Eric Blake Message-ID: <0f785963-825f-3512-d53f-e00010940499@redhat.com> Date: Thu, 15 Mar 2018 07:24:44 -0500 MIME-Version: 1.0 In-Reply-To: <20180315034507.6341-1-famz@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] vvfat: Fix inherit_options flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: Kevin Wolf , stefanha@redhat.com, qemu-block@nongnu.org, Max Reitz On 03/14/2018 10:45 PM, Fam Zheng wrote: > Overriding flags violates the precedence rules of > bdrv_reopen_queue_child. Just like the read-only option, no-flush should > be put into the options. The same is done in bdrv_temp_snapshot_options. > > Reported-by: Stefan Hajnoczi Signed-off-by: Fam Zheng > --- > block/vvfat.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Eric Blake > diff --git a/block/vvfat.c b/block/vvfat.c > index 4a17a49e12..1569783b0f 100644 > --- a/block/vvfat.c > +++ b/block/vvfat.c > @@ -3129,7 +3129,7 @@ static void vvfat_qcow_options(int *child_flags, QDict *child_options, > int parent_flags, QDict *parent_options) > { > qdict_set_default_str(child_options, BDRV_OPT_READ_ONLY, "off"); > - *child_flags = BDRV_O_NO_FLUSH; > + qdict_set_default_str(child_options, BDRV_OPT_CACHE_NO_FLUSH, "on"); > } > > static const BdrvChildRole child_vvfat_qcow = { > -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org