aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNir Soffer <nsoffer@redhat.com>2024-06-28 23:20:57 +0300
committerStefan Hajnoczi <stefanha@redhat.com>2024-07-11 11:06:36 +0200
commit249d0f83977c71c5a392c00947e1e7d5415ac5be (patch)
tree3b50a6e2c2a89fb808bd9438674476f80dbedfb0
parent59084feb256c617063e0dbe7e64821ae8852d7cf (diff)
downloadqemu-249d0f83977c71c5a392c00947e1e7d5415ac5be.zip
qemu-249d0f83977c71c5a392c00947e1e7d5415ac5be.tar.gz
qemu-249d0f83977c71c5a392c00947e1e7d5415ac5be.tar.bz2
qemu-iotest/245: Add missing discard=unmap
The test works since we punch holes by default even when opening the image without discard=on or discard=unmap. Fix the test to enable discard. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rwxr-xr-xtests/qemu-iotests/2452
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/245 b/tests/qemu-iotests/245
index a934c9d..f96610f 100755
--- a/tests/qemu-iotests/245
+++ b/tests/qemu-iotests/245
@@ -592,7 +592,7 @@ class TestBlockdevReopen(iotests.QMPTestCase):
@iotests.skip_if_unsupported(['compress'])
def test_insert_compress_filter(self):
# Add an image to the VM: hd (raw) -> hd0 (qcow2) -> hd0-file (file)
- opts = {'driver': 'raw', 'node-name': 'hd', 'file': hd_opts(0)}
+ opts = {'driver': 'raw', 'node-name': 'hd', 'file': hd_opts(0), 'discard': 'unmap'}
self.vm.cmd('blockdev-add', conv_keys = False, **opts)
# Add a 'compress' filter