]> xenbits.xensource.com Git - libvirt.git/commit
storage: Process storage pool capabilities
authorJohn Ferlan <jferlan@redhat.com>
Thu, 10 Jan 2019 12:23:26 +0000 (07:23 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 6 Mar 2019 16:12:48 +0000 (11:12 -0500)
commit642c06fd6318ba5507dda3f36c68f509b6e5a51e
tree86c891fc951541cf861984ecdf1f8825a31d79d6
parent05fe03505afac2583bc2d81373b967cd8031a48e
storage: Process storage pool capabilities

https://bugzilla.redhat.com/show_bug.cgi?id=1581670

During storage driver backend initialization, let's save
which backends are available in the storage pool capabilities.

In order to format those, we need add a connectGetCapabilities
processor to the storageHypervisorDriver. This allows a storage
connection, such as "storage:///system" to find the API and
format the results, such as:

  virsh -c storage:///system capabilities

  <capabilities>

    <pool>
      <enum name='type'>
        <value>dir</value>
        <value>fs</value>
        <value>netfs</value>
        <value>logical</value>
        <value>iscsi</value>
        <value>iscsi-direct</value>
        <value>scsi</value>
        <value>mpath</value>
        <value>disk</value>
        <value>rbd</value>
        <value>sheepdog</value>
        <value>gluster</value>
        <value>zfs</value>
      </enum>
    </pool>

  </capabilities>

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/virstorageobj.h
src/storage/storage_backend.c
src/storage/storage_backend.h
src/storage/storage_driver.c