From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gM9a5-000792-VF for qemu-devel@nongnu.org; Mon, 12 Nov 2018 05:36:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gM9Zy-0000fu-S1 for qemu-devel@nongnu.org; Mon, 12 Nov 2018 05:36:32 -0500 From: Alberto Garcia In-Reply-To: <62cb7e48-9120-ace4-cd84-f462b3100251@redhat.com> References: <62cb7e48-9120-ace4-cd84-f462b3100251@redhat.com> Date: Mon, 12 Nov 2018 11:36:23 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v4 14/15] block: Remove assertions from update_flags_from_options() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Kevin Wolf On Sun 11 Nov 2018 10:01:05 PM CET, Max Reitz wrote: >> - assert(qemu_opt_find(opts, BDRV_OPT_CACHE_DIRECT)); >> if (qemu_opt_get_bool_del(opts, BDRV_OPT_CACHE_DIRECT, false)) { >> *flags |= BDRV_O_NOCACHE; >> } >> >> *flags &= ~BDRV_O_RDWR; > > Unrelated to this patch, but isn't BDRV_O_AUTO_RDONLY missing here? I forgot to mention, but I think you're right here. I'll include this fix in the next version of the series. Berto