[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 37/37] iotests: Add test for -U/force-share conflicts
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 37/37] iotests: Add test for -U/force-share conflicts |
Date: |
Tue, 15 May 2018 17:40:33 +0200 |
From: Max Reitz <address@hidden>
Signed-off-by: Max Reitz <address@hidden>
Message-id: address@hidden
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Max Reitz <address@hidden>
---
tests/qemu-iotests/153 | 17 +++++++++++++++++
tests/qemu-iotests/153.out | 16 ++++++++++++++++
2 files changed, 33 insertions(+)
diff --git a/tests/qemu-iotests/153 b/tests/qemu-iotests/153
index a0fd815483..ec508c758f 100755
--- a/tests/qemu-iotests/153
+++ b/tests/qemu-iotests/153
@@ -242,6 +242,23 @@ _run_cmd $QEMU_IO "${TEST_IMG}" -c 'write 0 512'
_cleanup_qemu
+echo
+echo "== Detecting -U and force-share conflicts =="
+
+echo
+echo 'No conflict:'
+$QEMU_IMG info -U --image-opts driver=null-co,force-share=on
+echo
+echo 'Conflict:'
+$QEMU_IMG info -U --image-opts driver=null-co,force-share=off
+
+echo
+echo 'No conflict:'
+$QEMU_IO -c 'open -r -U -o driver=null-co,force-share=on'
+echo
+echo 'Conflict:'
+$QEMU_IO -c 'open -r -U -o driver=null-co,force-share=off'
+
# success, all done
echo "*** done"
rm -f $seq.full
diff --git a/tests/qemu-iotests/153.out b/tests/qemu-iotests/153.out
index bb721cb747..2510762ba1 100644
--- a/tests/qemu-iotests/153.out
+++ b/tests/qemu-iotests/153.out
@@ -399,4 +399,20 @@ Is another process using the image?
Closing the other
_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
+
+== Detecting -U and force-share conflicts ==
+
+No conflict:
+image: null-co://
+file format: null-co
+virtual size: 1.0G (1073741824 bytes)
+disk size: unavailable
+
+Conflict:
+qemu-img: --force-share/-U conflicts with image options
+
+No conflict:
+
+Conflict:
+-U conflicts with image options
*** done
--
2.13.6
- [Qemu-devel] [PULL 25/37] block: BLK_PERM_WRITE includes ..._UNCHANGED, (continued)
- [Qemu-devel] [PULL 25/37] block: BLK_PERM_WRITE includes ..._UNCHANGED, Kevin Wolf, 2018/05/15
- [Qemu-devel] [PULL 29/37] block: Support BDRV_REQ_WRITE_UNCHANGED in filters, Kevin Wolf, 2018/05/15
- [Qemu-devel] [PULL 30/37] iotests: Clean up wrap image in 197, Kevin Wolf, 2018/05/15
- [Qemu-devel] [PULL 34/37] block: Document BDRV_REQ_WRITE_UNCHANGED support, Kevin Wolf, 2018/05/15
- [Qemu-devel] [PULL 33/37] qemu-img: Check post-truncation size, Kevin Wolf, 2018/05/15
- [Qemu-devel] [PULL 35/37] qemu-io: Use purely string blockdev options, Kevin Wolf, 2018/05/15
- [Qemu-devel] [PULL 31/37] iotests: Copy 197 for COR filter driver, Kevin Wolf, 2018/05/15
- [Qemu-devel] [PULL 24/37] block: Add COR filter driver, Kevin Wolf, 2018/05/15
- [Qemu-devel] [PULL 32/37] iotests: Add test for COR across nodes, Kevin Wolf, 2018/05/15
- [Qemu-devel] [PULL 36/37] qemu-img: Use only string options in img_open_opts, Kevin Wolf, 2018/05/15
- [Qemu-devel] [PULL 37/37] iotests: Add test for -U/force-share conflicts,
Kevin Wolf <=
- Re: [Qemu-devel] [PULL 00/37] Block layer patches, Peter Maydell, 2018/05/15