]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxmlconftest: Use only 'nfs' protocol in 'disk-network-nfs'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 10 Oct 2024 15:45:57 +0000 (17:45 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 16 Oct 2024 12:39:09 +0000 (14:39 +0200)
Convert one of the layers of the backing chain to 'nfs' to test if users
don't set the identity.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tests/qemuxmlconfdata/disk-network-nfs.x86_64-latest.args
tests/qemuxmlconfdata/disk-network-nfs.x86_64-latest.xml
tests/qemuxmlconfdata/disk-network-nfs.xml

index a32475eadf47d6668be58c6a5c74718a71161a9d..62f56b146f21063febf483a67c5360526074c412 100644 (file)
@@ -31,7 +31,7 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
 -device '{"driver":"virtio-blk-pci","bus":"pci.0","addr":"0x4","drive":"libvirt-3-storage","id":"virtio-disk0","bootindex":1,"write-cache":"on","serial":"eb90327c-8302-4725-9e1b-4e85ed4dc251"}' \
 -blockdev '{"driver":"nfs","server":{"host":"example.org","type":"inet"},"path":"/backing/store/nfs","user":1234,"group":5678,"node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-2-format","read-only":true,"driver":"qcow2","file":"libvirt-2-storage","backing":null}' \
--blockdev '{"driver":"gluster","volume":"Volume2","path":"Image","server":[{"type":"unix","path":"/path/to/sock"}],"debug":4,"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
+-blockdev '{"driver":"nfs","server":{"host":"example.org","type":"inet"},"path":"/Volume2/Image","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"qcow2","file":"libvirt-1-storage","backing":"libvirt-2-format"}' \
 -device '{"driver":"virtio-blk-pci","bus":"pci.0","addr":"0x2","drive":"libvirt-1-format","id":"virtio-disk1"}' \
 -audiodev '{"id":"audio1","driver":"none"}' \
index 19e269c531f0b879e818779c1b68a83ca4ba6105..b0fb80d7f10cb1b5533da4f89d2c660ca4536949 100644 (file)
@@ -29,8 +29,8 @@
     </disk>
     <disk type='network' device='disk'>
       <driver name='qemu' type='qcow2'/>
-      <source protocol='gluster' name='Volume2/Image'>
-        <host transport='unix' socket='/path/to/sock'/>
+      <source protocol='nfs' name='/Volume2/Image'>
+        <host name='example.org'/>
       </source>
       <backingStore type='network'>
         <format type='qcow2'/>
index 328afbc46cb67166141bb378fad43b8f40de7513..b7f0e264510ac51198b67b1e6cfc21fa03888c6e 100644 (file)
@@ -26,8 +26,8 @@
     </disk>
     <disk type='network' device='disk'>
       <driver name='qemu' type='qcow2'/>
-      <source protocol='gluster' name='Volume2/Image'>
-        <host transport='unix' socket='/path/to/sock'/>
+      <source protocol='nfs' name='/Volume2/Image'>
+        <host name='example.org'/>
       </source>
       <backingStore type='network'>
         <format type='qcow2'/>