projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb67ab0
)
blkdebug: Fix set_state_opts definition
author
Kevin Wolf
<kwolf@redhat.com>
Wed, 30 Jun 2010 15:40:42 +0000
(17:40 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Fri, 2 Jul 2010 11:18:02 +0000
(13:18 +0200)
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 <kwolf@redhat.com>
block/blkdebug.c
patch
|
blob
|
history
diff --git
a/block/blkdebug.c
b/block/blkdebug.c
index 98fed944b1364f82921c4a02a4fa2244d7d27b53..4ec8ca69848c672a9470842bca676bb496db9481 100644
(file)
--- 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",