mirror of https://github.com/xemu-project/xemu.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 <mreitz@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Message-id: 20190201192935.18394-30-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
937c007b6e
commit
1e47cb7f52
|
@ -248,7 +248,8 @@ static void null_refresh_filename(BlockDriverState *bs)
|
||||||
{
|
{
|
||||||
/* These options can be ignored */
|
/* These options can be ignored */
|
||||||
if (strcmp(qdict_entry_key(e), "filename") &&
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue