]> xenbits.xensource.com Git - libvirt.git/commit
Add Gluster protocol as supported network disk backend
authorHarsh Prateek Bora <harsh@linux.vnet.ibm.com>
Thu, 22 Nov 2012 18:10:38 +0000 (23:40 +0530)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 27 Nov 2012 09:19:22 +0000 (10:19 +0100)
commita2d2b80fbd29dec4da31ec4072b6b555fe93d2c0
treeaed55fc886db80c886c0869675f737226133f329
parent7e5aa78d0f7f4cbf1c8154d5004f251fc25ddaf4
Add Gluster protocol as supported network disk backend

This patch introduces the RNG schema and updates necessary data strucutures
to allow various hypervisors to make use of Gluster protocol as one of the
supported network disk backend. Next patch will add support to make use of
this feature in Qemu since it now supports Gluster protocol as one of the
network based storage backend.

Two new optional attributes for <host> element are introduced - 'transport'
and 'socket'. Valid transport values are tcp, unix or rdma. If none specified,
tcp is assumed. If transport is unix, socket specifies path to unix socket.

This patch allows users to specify disks on gluster backends like this:

    <disk type='network' device='disk'>
      <driver name='qemu' type='raw'/>
      <source protocol='gluster' name='Volume1/image'>
        <host name='example.org' port='6000' transport='tcp'/>
      </source>
      <target dev='vda' bus='virtio'/>
    </disk>

    <disk type='network' device='disk'>
      <driver name='qemu' type='raw'/>
      <source protocol='gluster' name='Volume2/image'>
        <host transport='unix' socket='/path/to/sock'/>
      </source>
      <target dev='vdb' bus='virtio'/>
    </disk>

Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_command.c