]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virstoragetest: Add case for qcow2 image with empty string as 'data_file'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 9 Jan 2025 14:18:58 +0000 (15:18 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 20 Jan 2025 12:25:51 +0000 (13:25 +0100)
commite6a4245d2a4db3857cfb38d4d3c4e3e0bcff6587
tree2693f557972acfdf94189852306780d671cf3334
parent87a4fe2906b712d3a6ea3e9c8d9faa98b9ec5632
virstoragetest: Add case for qcow2 image with empty string as 'data_file'

Add an example image formatted by:

 qemu-img create -f qcow2 -o data_file=nbd+unix:///datafile?socket=/tmp/nbd,data_file_raw=true /tmp/nbddatastore.qcow2 10M -u

serving as an example when qemu records an empty string as the
'data_file' field.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/virstoragetest.c
tests/virstoragetestdata/images/datafile-emptystr.qcow2 [new file with mode: 0644]