mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
6604a3dd9f
The target= setting in xl disk configuration can be used to encode meta info that is meaningful to a backend. Leverage this fact to support qdisk network disk types such as rbd. E.g. <disk> config such as <disk type='network' device='disk'> <driver name='qemu' type='raw'/> <source protocol='rbd' name='pool/image'> <host name='mon1.example.org' port='6321'/> <host name='mon2.example.org' port='6322'/> <host name='mon3.example.org' port='6322'/> </source> <target dev='hdb' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> can be converted to the following xl config (and vice versa) disk = [ "format=raw,vdev=hdb,access=rw,backendtype=qdisk, target=rbd:pool/image:auth_supported=none:mon_host=mon1.example.org\\:6321\\;mon2.example.org\\:6322\\;mon3.example.org\\:6322" ] Note that in xl disk config, a literal backslash in target= must be escaped with a backslash. Conversion of <auth> config is not handled in this patch, but can be done in a follow-up patch. Also add a test for the conversions. Signed-off-by: Jim Fehlig <jfehlig@suse.com> |
||
---|---|---|
.. | ||
test-disk-positional-parms-full.cfg | ||
test-disk-positional-parms-full.xml | ||
test-disk-positional-parms-partial.cfg | ||
test-disk-positional-parms-partial.xml | ||
test-fullvirt-direct-kernel-boot-bogus-extra.cfg | ||
test-fullvirt-direct-kernel-boot-bogus-extra.xml | ||
test-fullvirt-direct-kernel-boot-extra.cfg | ||
test-fullvirt-direct-kernel-boot-extra.xml | ||
test-fullvirt-direct-kernel-boot.cfg | ||
test-fullvirt-direct-kernel-boot.xml | ||
test-fullvirt-multiusb.cfg | ||
test-fullvirt-multiusb.xml | ||
test-new-disk.cfg | ||
test-new-disk.xml | ||
test-paravirt-cmdline-bogus-extra-root.cfg | ||
test-paravirt-cmdline-bogus-extra-root.xml | ||
test-paravirt-cmdline-extra-root.cfg | ||
test-paravirt-cmdline-extra-root.xml | ||
test-paravirt-cmdline.cfg | ||
test-paravirt-cmdline.xml | ||
test-paravirt-maxvcpus.cfg | ||
test-paravirt-maxvcpus.xml | ||
test-rbd-multihost-noauth.cfg | ||
test-rbd-multihost-noauth.xml | ||
test-spice-features.cfg | ||
test-spice-features.xml | ||
test-spice.cfg | ||
test-spice.xml | ||
test-vif-rate.cfg | ||
test-vif-rate.xml |