diff --git a/block/blkdebug.c b/block/blkdebug.c index 78cbff4bdc..2a63df9323 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -301,6 +301,9 @@ static int blkdebug_open(BlockDriverState *bs, const char *filename, int flags) } filename = c + 1; + /* Set initial state */ + s->vars.state = 1; + /* Open the backing file */ ret = bdrv_file_open(&bs->file, filename, flags); if (ret < 0) {