From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47185 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTzWr-0007uG-St for qemu-devel@nongnu.org; Wed, 30 Jun 2010 11:48:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTzWm-0001IJ-R8 for qemu-devel@nongnu.org; Wed, 30 Jun 2010 11:48:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15879) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTzWm-0001I8-HY for qemu-devel@nongnu.org; Wed, 30 Jun 2010 11:48:44 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5UFmhXm000562 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 30 Jun 2010 11:48:43 -0400 From: Kevin Wolf Date: Wed, 30 Jun 2010 17:48:32 +0200 Message-Id: <1277912914-21771-2-git-send-email-kwolf@redhat.com> In-Reply-To: <1277912914-21771-1-git-send-email-kwolf@redhat.com> References: <1277912914-21771-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] blkdebug: Fix set_state_opts definition List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com The list head was initialized to point to the wrong list, so all actions ended up being handled as inject-error even if they were set-state in fact. Signed-off-by: Kevin Wolf --- block/blkdebug.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/blkdebug.c b/block/blkdebug.c index 98fed94..4ec8ca6 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -111,7 +111,7 @@ static QemuOptsList inject_error_opts = { static QemuOptsList set_state_opts = { .name = "set-state", - .head = QTAILQ_HEAD_INITIALIZER(inject_error_opts.head), + .head = QTAILQ_HEAD_INITIALIZER(set_state_opts.head), .desc = { { .name = "event", -- 1.6.6.1