From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eospF-0002zL-Ae for qemu-devel@nongnu.org; Thu, 22 Feb 2018 10:30:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eospE-0007JJ-D7 for qemu-devel@nongnu.org; Thu, 22 Feb 2018 10:30:25 -0500 From: Alberto Garcia In-Reply-To: References: <20180205151835.20812-1-mreitz@redhat.com> <20180205151835.20812-19-mreitz@redhat.com> Date: Thu, 22 Feb 2018 16:30:15 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v8 18/26] block: Add sgfnt_runtime_opts to BlockDriver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, Kevin Wolf On Thu 22 Feb 2018 04:19:45 PM CET, Max Reitz wrote: > On 2018-02-06 16:23, Alberto Garcia wrote: >> On Mon 05 Feb 2018 04:18:27 PM CET, Max Reitz wrote: >>> --- a/block/blkdebug.c >>> +++ b/block/blkdebug.c >>> @@ -886,6 +886,21 @@ static int blkdebug_reopen_prepare(BDRVReopenState *reopen_state, >>> return 0; >>> } >>> >>> +static const char *const blkdebug_sgfnt_runtime_opts[] = { >>> + "config", >>> + "inject-error.", >>> + "set-state.", >>> + "suspend.", >> >> Where did this "suspend." come from? > > Er, well, er. > > After having looked at it a couple of times now, I can't see anything. > I guess I'll remove it and hope for the best...? My interpretation is that you saw enum { ACTION_INJECT_ERROR, ACTION_SET_STATE, ACTION_SUSPEND, }; and assumed that "suspend" was an option (the other two are). I haven't seen any string with the "suspend" text anywhere else in the code. Berto