[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v7 2/9] blkverify: set supported write/zero flags
From: |
Anton Nefedov |
Subject: |
[Qemu-block] [PATCH v7 2/9] blkverify: set supported write/zero flags |
Date: |
Thu, 18 Jan 2018 20:49:00 +0300 |
Signed-off-by: Anton Nefedov <address@hidden>
Reviewed-by: Alberto Garcia <address@hidden>
---
block/blkverify.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/block/blkverify.c b/block/blkverify.c
index 06369f9..9ba65d0 100644
--- a/block/blkverify.c
+++ b/block/blkverify.c
@@ -140,6 +140,15 @@ static int blkverify_open(BlockDriverState *bs, QDict
*options, int flags,
goto fail;
}
+ bs->supported_write_flags = BDRV_REQ_FUA &
+ bs->file->bs->supported_write_flags &
+ s->test_file->bs->supported_write_flags;
+
+ bs->supported_zero_flags =
+ (BDRV_REQ_FUA | BDRV_REQ_MAY_UNMAP) &
+ bs->file->bs->supported_zero_flags &
+ s->test_file->bs->supported_zero_flags;
+
ret = 0;
fail:
qemu_opts_del(opts);
--
2.7.4
- Re: [Qemu-block] [PATCH v7 7/9] qcow2: move is_zero() up, (continued)
- [Qemu-block] [PATCH v7 9/9] iotest 134: test cluster-misaligned encrypted write, Anton Nefedov, 2018/01/18
- [Qemu-block] [PATCH v7 6/9] block: support BDRV_REQ_ALLOCATE in passthrough drivers, Anton Nefedov, 2018/01/18
- [Qemu-block] [PATCH v7 2/9] blkverify: set supported write/zero flags,
Anton Nefedov <=
- [Qemu-block] [PATCH v7 8/9] qcow2: skip writing zero buffers to empty COW areas, Anton Nefedov, 2018/01/18
- Re: [Qemu-block] [PATCH v7 8/9] qcow2: skip writing zero buffers to empty COW areas, Max Reitz, 2018/01/29
- Re: [Qemu-block] [PATCH v7 8/9] qcow2: skip writing zero buffers to empty COW areas, Anton Nefedov, 2018/01/30
- Re: [Qemu-block] [PATCH v7 8/9] qcow2: skip writing zero buffers to empty COW areas, Max Reitz, 2018/01/31
- Re: [Qemu-block] [PATCH v7 8/9] qcow2: skip writing zero buffers to empty COW areas, Eric Blake, 2018/01/31
- Re: [Qemu-block] [PATCH v7 8/9] qcow2: skip writing zero buffers to empty COW areas, Max Reitz, 2018/01/31
- Re: [Qemu-block] [PATCH v7 8/9] qcow2: skip writing zero buffers to empty COW areas, Eric Blake, 2018/01/31
[Qemu-block] [PATCH v7 4/9] block: treat BDRV_REQ_ALLOCATE as serialising, Anton Nefedov, 2018/01/18