Revision | 21c1ce592a144188dfe59b9e156a97da412a59a2 (tree) |
---|---|
Time | 2019-06-14 22:09:42 |
Author | Max Reitz <mreitz@redh...> |
Commiter | Max Reitz |
iotests: Test qemu-img convert -C --salvage
We do not support this combination (yet), so this should yield an error
message.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Tested-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20190507203508.18026-8-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
@@ -162,6 +162,7 @@ echo === convert: -C and other options === | ||
162 | 162 | run_qemu_img convert -C -S 4k -O $IMGFMT "$TEST_IMG" "$TEST_IMG".target |
163 | 163 | run_qemu_img convert -C -S 8k -O $IMGFMT "$TEST_IMG" "$TEST_IMG".target |
164 | 164 | run_qemu_img convert -C -c -O $IMGFMT "$TEST_IMG" "$TEST_IMG".target |
165 | +run_qemu_img convert -C --salvage -O $IMGFMT "$TEST_IMG" "$TEST_IMG".target | |
165 | 166 | |
166 | 167 | echo |
167 | 168 | echo === amend: Options specified more than once === |
@@ -567,6 +567,9 @@ qemu-img: Cannot enable copy offloading when -S is used | ||
567 | 567 | Testing: convert -C -c -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.target |
568 | 568 | qemu-img: Cannot enable copy offloading when -c is used |
569 | 569 | |
570 | +Testing: convert -C --salvage -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.target | |
571 | +qemu-img: Cannot use copy offloading in salvaging mode | |
572 | + | |
570 | 573 | === amend: Options specified more than once === |
571 | 574 | |
572 | 575 | Testing: amend -f foo -f qcow2 -o lazy_refcounts=on TEST_DIR/t.qcow2 |