]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml2argvtest: hostdev-scsi-virtio-scsi: Add <readonly/> to one of the iSCSI hostdevs
authorPeter Krempa <pkrempa@redhat.com>
Tue, 15 Sep 2020 15:48:22 +0000 (17:48 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 16 Sep 2020 07:08:56 +0000 (09:08 +0200)
Test a readonly iSCSI backend as well.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemuxml2argvdata/hostdev-scsi-virtio-scsi.x86_64-2.8.0.args
tests/qemuxml2argvdata/hostdev-scsi-virtio-scsi.x86_64-4.1.0.args
tests/qemuxml2argvdata/hostdev-scsi-virtio-scsi.xml
tests/qemuxml2xmloutdata/hostdev-scsi-virtio-scsi.xml

index 3f007db2c33d042493ff3efbe6249a5f2fd95a6b..bb8a466f70413dc0f5978d1239f1026dc1c41e1e 100644 (file)
@@ -47,7 +47,7 @@ format=raw,id=drive-hostdev2 \
 -device scsi-generic,bus=scsi0.0,channel=0,scsi-id=2,lun=4,\
 drive=drive-hostdev2,id=hostdev2 \
 -drive file=iscsi://example.org:3260/iqn.1992-01.com.example/1,if=none,\
-format=raw,id=drive-hostdev3 \
+format=raw,id=drive-hostdev3,readonly=on \
 -device scsi-generic,bus=scsi0.0,channel=0,scsi-id=2,lun=5,\
 drive=drive-hostdev3,id=hostdev3 \
 -drive file=iscsi://myname:AQCVn5hO6HzFAhAAq0NCv8jtJcIcE+HOBlMQ1A@example.org:\
index eb11d8f733358eaaa76c492a0e304a364f456bf8..973ae5677a5f3f6777d1282bd5965a593220a3a1 100644 (file)
@@ -48,7 +48,7 @@ format=raw,id=drive-hostdev2 \
 drive=drive-hostdev2,id=hostdev2 \
 -drive file.driver=iscsi,file.portal=example.org:3260,\
 file.target=iqn.1992-01.com.example,file.lun=1,file.transport=tcp,if=none,\
-format=raw,id=drive-hostdev3 \
+format=raw,id=drive-hostdev3,readonly=on \
 -device scsi-generic,bus=scsi0.0,channel=0,scsi-id=2,lun=5,\
 drive=drive-hostdev3,id=hostdev3 \
 -object secret,id=hostdev4-secret0,\
index 4903a75d13bf2e188c86ff709b043e0ce5b379fb..d096e0cb2854c9990bf166bd958fe271a74da546 100644 (file)
@@ -58,6 +58,7 @@
       <source protocol='iscsi' name='iqn.1992-01.com.example/1'>
         <host name='example.org' port='3260'/>
       </source>
+      <readonly/>
       <address type='drive' controller='0' bus='0' target='2' unit='5'/>
     </hostdev>
     <hostdev mode='subsystem' type='scsi' managed='yes'>
index 3a2b10d81565890e17a15aa09204dc8441ca2ca5..3e2e21dc55a1fd8661f2c6013ebc9323f3d02afb 100644 (file)
@@ -65,6 +65,7 @@
       <source protocol='iscsi' name='iqn.1992-01.com.example/1'>
         <host name='example.org' port='3260'/>
       </source>
+      <readonly/>
       <address type='drive' controller='0' bus='0' target='2' unit='5'/>
     </hostdev>
     <hostdev mode='subsystem' type='scsi' managed='yes'>