[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/7] block: Drop aio/cache consistency check from qm
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 1/7] block: Drop aio/cache consistency check from qmp_blockdev_add() |
Date: |
Tue, 20 Sep 2016 23:08:51 +0200 |
The TODO comment has been addressed a while ago and this is now checked
in raw-posix, so we don't have to special case this in blockdev-add any
more.
Signed-off-by: Kevin Wolf <address@hidden>
---
blockdev.c | 15 ---------------
tests/qemu-iotests/087.out | 2 +-
2 files changed, 1 insertion(+), 16 deletions(-)
diff --git a/blockdev.c b/blockdev.c
index a51434c..a611cc8 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -3834,21 +3834,6 @@ void qmp_blockdev_add(BlockdevOptions *options, Error
**errp)
QDict *qdict;
Error *local_err = NULL;
- /* TODO Sort it out in raw-posix and drive_new(): Reject aio=native with
- * cache.direct=false instead of silently switching to aio=threads, except
- * when called from drive_new().
- *
- * For now, simply forbidding the combination for all drivers will do. */
- if (options->has_aio && options->aio == BLOCKDEV_AIO_OPTIONS_NATIVE) {
- bool direct = options->has_cache &&
- options->cache->has_direct &&
- options->cache->direct;
- if (!direct) {
- error_setg(errp, "aio=native requires cache.direct=true");
- goto fail;
- }
- }
-
visit_type_BlockdevOptions(v, NULL, &options, &local_err);
if (local_err) {
error_propagate(errp, local_err);
diff --git a/tests/qemu-iotests/087.out b/tests/qemu-iotests/087.out
index f2d6f96..6cd5e37 100644
--- a/tests/qemu-iotests/087.out
+++ b/tests/qemu-iotests/087.out
@@ -27,7 +27,7 @@ QMP_VERSION
Testing:
QMP_VERSION
{"return": {}}
-{"error": {"class": "GenericError", "desc": "aio=native requires
cache.direct=true"}}
+{"error": {"class": "GenericError", "desc": "aio=native was specified, but it
requires cache.direct=on, which was not specified."}}
{"return": {}}
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event":
"SHUTDOWN"}
--
1.8.3.1
- [Qemu-devel] [PATCH 0/7] block: Make more blockdev-add options work, Kevin Wolf, 2016/09/20
- [Qemu-devel] [PATCH 1/7] block: Drop aio/cache consistency check from qmp_blockdev_add(),
Kevin Wolf <=
- [Qemu-devel] [PATCH 5/7] block: Use 'detect-zeroes' option for 'blockdev-change-medium', Kevin Wolf, 2016/09/20
- [Qemu-devel] [PATCH 4/7] block: Parse 'detect-zeroes' in bdrv_open_common(), Kevin Wolf, 2016/09/20
- [Qemu-devel] [PATCH 7/7] block: Remove qemu_root_bds_opts, Kevin Wolf, 2016/09/20
- [Qemu-devel] [PATCH 2/7] block/qapi: Use separate options type for curl driver, Kevin Wolf, 2016/09/20
- [Qemu-devel] [PATCH 3/7] block/qapi: Move 'aio' option to file driver, Kevin Wolf, 2016/09/20