]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: storage: Add volume feature formatter for gluster pools
authorPeter Krempa <pkrempa@redhat.com>
Tue, 1 Jul 2014 14:50:06 +0000 (16:50 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Jul 2014 15:39:50 +0000 (17:39 +0200)
Libvirt didn't output feature flags for images stored on native gluster.
Fix this trivially by adding a feature formatter callback.

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

src/conf/storage_conf.c

index 8b6fd790866730c3571acef9392429c5bdf41b9d..c8df5b2b8320b3ea933dd70bf26900b3ae21aa59 100644 (file)
@@ -258,6 +258,8 @@ static virStoragePoolTypeInfo poolTypeInfo[] = {
          .defaultFormat = VIR_STORAGE_FILE_RAW,
          .formatToString = virStorageFileFormatTypeToString,
          .formatFromString = virStorageVolumeFormatFromString,
+         .featureFromString = virStorageFileFeatureTypeFromString,
+         .featureToString = virStorageFileFeatureTypeToString,
      }
     },
     {.poolType = VIR_STORAGE_POOL_MPATH,