On Tue, Feb 16, 2016 at 02:45:58PM -0700, Jim Fehlig wrote: > 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. xl disk config > containing > > 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" ] > > can be converted to the following XML (and vice versa) > > <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> > > Note that 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@xxxxxxxx> > --- > src/xenconfig/xen_xl.c | 145 +++++++++++++++++++++-- > tests/xlconfigdata/test-rbd-multihost-noauth.cfg | 26 ++++ > tests/xlconfigdata/test-rbd-multihost-noauth.xml | 51 ++++++++ > tests/xlconfigtest.c | 1 + > 4 files changed, 216 insertions(+), 7 deletions(-) ACK, Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list