From: Max Reitz Date: Fri, 1 Feb 2019 19:29:33 +0000 (+0100) Subject: block/null: Generate filename even with latency-ns X-Git-Tag: v4.0.0-rc0~78^2^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e47cb7f52541a82148da37eb004a0c68be4b865;p=thirdparty%2Fqemu.git block/null: Generate filename even with latency-ns While we cannot represent the latency-ns option in a filename, it is not a strong option so not being able to should not stop us from generating a filename nonetheless. Signed-off-by: Max Reitz Reviewed-by: Alberto Garcia Message-id: 20190201192935.18394-30-mreitz@redhat.com Signed-off-by: Max Reitz --- diff --git a/block/null.c b/block/null.c index 1c56a0ef01b..a322929478f 100644 --- a/block/null.c +++ b/block/null.c @@ -248,7 +248,8 @@ static void null_refresh_filename(BlockDriverState *bs) { /* These options can be ignored */ if (strcmp(qdict_entry_key(e), "filename") && - strcmp(qdict_entry_key(e), "driver")) + strcmp(qdict_entry_key(e), "driver") && + strcmp(qdict_entry_key(e), NULL_OPT_LATENCY)) { return; }