mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemuxml2argvtest: hostdev-scsi-virtio-scsi: Add <readonly/> to one of the iSCSI hostdevs
Test a readonly iSCSI backend as well. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
1a5f35dbd2
commit
c58c970586
@ -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:\
|
||||
|
@ -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,\
|
||||
|
@ -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'>
|
||||
|
@ -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'>
|
||||
|
Loading…
Reference in New Issue
Block a user