[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v2 24/24] block/null: Generate filename even with la
From: |
Max Reitz |
Subject: |
[Qemu-block] [PATCH v2 24/24] block/null: Generate filename even with latency-ns |
Date: |
Sun, 27 Nov 2016 02:56:22 +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>
---
block/null.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/block/null.c b/block/null.c
index fb03fb9..f665bcf 100644
--- a/block/null.c
+++ b/block/null.c
@@ -231,7 +231,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.10.2
- [Qemu-block] [PATCH v2 13/24] block/nbd: Implement bdrv_dirname(), (continued)
- [Qemu-block] [PATCH v2 13/24] block/nbd: Implement bdrv_dirname(), Max Reitz, 2016/11/26
- [Qemu-block] [PATCH v2 14/24] block/nfs: Implement bdrv_dirname(), Max Reitz, 2016/11/26
- [Qemu-block] [PATCH v2 15/24] block: Use bdrv_dirname() for relative filenames, Max Reitz, 2016/11/26
- [Qemu-block] [PATCH v2 16/24] block: Add 'base-directory' BDS option, Max Reitz, 2016/11/26
- [Qemu-block] [PATCH v2 17/24] iotests: Add quorum case to test 110, Max Reitz, 2016/11/26
- [Qemu-block] [PATCH v2 18/24] block: Add sgfnt_runtime_opts to BlockDriver, Max Reitz, 2016/11/26
- [Qemu-block] [PATCH v2 19/24] block: Add BlockDriver.bdrv_gather_child_options, Max Reitz, 2016/11/26
- [Qemu-block] [PATCH v2 20/24] block: Generically refresh runtime options, Max Reitz, 2016/11/26
- [Qemu-block] [PATCH v2 22/24] block: Do not copy exact_filename from format file, Max Reitz, 2016/11/26
- [Qemu-block] [PATCH v2 21/24] block: Purify .bdrv_refresh_filename(), Max Reitz, 2016/11/26
- [Qemu-block] [PATCH v2 24/24] block/null: Generate filename even with latency-ns,
Max Reitz <=
- [Qemu-block] [PATCH v2 23/24] block/curl: Implement bdrv_refresh_filename(), Max Reitz, 2016/11/26