[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v8 26/26] block/null: Generate filename even with la
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH v8 26/26] block/null: Generate filename even with latency-ns |
Date: |
Mon, 5 Feb 2018 16:18:35 +0100 |
While we cannot represent the latency-ns option in a filename, it is not
a significant option so not being able to should not stop us from
generating a filename nonetheless.
Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: Alberto Garcia <address@hidden>
---
block/null.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/block/null.c b/block/null.c
index cca149ce9c..6ffed1c98e 100644
--- a/block/null.c
+++ b/block/null.c
@@ -249,7 +249,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;
}
--
2.14.3
- Re: [Qemu-devel] [PATCH v8 18/26] block: Add sgfnt_runtime_opts to BlockDriver, (continued)
[Qemu-devel] [PATCH v8 24/26] block/curl: Harmonize option defaults, Max Reitz, 2018/02/05
[Qemu-devel] [PATCH v8 23/26] block: Fix FIXME from "Add BDS.backing_overridden", Max Reitz, 2018/02/05
[Qemu-devel] [PATCH v8 22/26] block: Do not copy exact_filename from format file, Max Reitz, 2018/02/05
[Qemu-devel] [PATCH v8 25/26] block/curl: Implement bdrv_refresh_filename(), Max Reitz, 2018/02/05
[Qemu-devel] [PATCH v8 26/26] block/null: Generate filename even with latency-ns,
Max Reitz <=