[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 12/14] qemu-img: adds option to use aio engine
From: |
Aarushi Mehta |
Subject: |
[Qemu-devel] [PATCH v6 12/14] qemu-img: adds option to use aio engine |
Date: |
Fri, 19 Jul 2019 19:05:28 +0530 |
Use -i AIOMODE instead of -n.
Signed-off-by: Aarushi Mehta <address@hidden>
---
qemu-img.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/qemu-img.c b/qemu-img.c
index 79983772de..b7a962afff 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -4192,7 +4192,7 @@ static int img_bench(int argc, char **argv)
{"force-share", no_argument, 0, 'U'},
{0, 0, 0, 0}
};
- c = getopt_long(argc, argv, ":hc:d:f:no:qs:S:t:wU", long_options,
NULL);
+ c = getopt_long(argc, argv, ":hc:d:f:io:qs:S:t:wU", long_options,
NULL);
if (c == -1) {
break;
}
@@ -4232,8 +4232,13 @@ static int img_bench(int argc, char **argv)
case 'f':
fmt = optarg;
break;
- case 'n':
- flags |= BDRV_O_NATIVE_AIO;
+ case 'i':
+ ret = bdrv_parse_aio(optarg, &flags);
+ if (ret < 0) {
+ error_report("Invalid aio option: %s", optarg);
+ ret = -1;
+ goto out;
+ }
break;
case 'o':
{
--
2.21.0
- [Qemu-devel] [PATCH v6 08/14] block/file-posix.c: extend to use io_uring, (continued)
- [Qemu-devel] [PATCH v6 08/14] block/file-posix.c: extend to use io_uring, Aarushi Mehta, 2019/07/19
- [Qemu-devel] [PATCH v6 09/14] block: add trace events for io_uring, Aarushi Mehta, 2019/07/19
- [Qemu-devel] [PATCH v6 10/14] block/io_uring: adds userspace completion polling, Aarushi Mehta, 2019/07/19
- [Qemu-devel] [PATCH v6 11/14] qemu-io: adds option to use aio engine, Aarushi Mehta, 2019/07/19
- Re: [Qemu-devel] [PATCH v6 11/14] qemu-io: adds option to use aio engine, Julia Suvorova, 2019/07/24
- [Qemu-devel] [PATCH v6 12/14] qemu-img: adds option to use aio engine,
Aarushi Mehta <=
- [Qemu-devel] [PATCH v6 13/14] qemu-nbd: adds option for aio engines, Aarushi Mehta, 2019/07/19
- [Qemu-devel] [PATCH v6 14/14] qemu-iotest: enable testing with qemu-io aio options, Aarushi Mehta, 2019/07/19
- Re: [Qemu-devel] [PATCH v6 00/14] Add support for io_uring, no-reply, 2019/07/19
- Re: [Qemu-devel] [PATCH v6 00/14] Add support for io_uring, no-reply, 2019/07/19