Message ID | 1387564104-15315-3-git-send-email-mreitz@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/block/blkdebug.c b/block/blkdebug.c index 2eb2e8b..fab76ce 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -313,7 +313,9 @@ static void blkdebug_parse_filename(const char *filename, QDict *options, /* Parse the blkdebug: prefix */ if (!strstart(filename, "blkdebug:", &filename)) { - error_setg(errp, "File name string must start with 'blkdebug:'"); + /* There was no prefix; therefore, all options have to be already + present in the QDict (except for the filename) */ + qdict_put(options, "x-image", qstring_from_str(filename)); return; }