]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Remove volOptions for VIR_STORAGE_POOL_SHEEPDOG
authorJohn Ferlan <jferlan@redhat.com>
Wed, 6 Feb 2019 21:57:28 +0000 (16:57 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 6 Mar 2019 16:12:48 +0000 (11:12 -0500)
The sheepdog pool is documented as not using the volume type,
so let's just remove it.  Besides it would have produced bad
results since the defaultType is FILE but the formatting used
the Disk types.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/storage_conf.c
tests/storagevolxml2xmlout/vol-sheepdog.xml

index d7c17db6692164f4e47d34f169fe8cf29b9474f0..0472be5753bc4ecfd096e5b17dbf6b8d85c4ab23 100644 (file)
@@ -249,10 +249,6 @@ static virStoragePoolTypeInfo poolTypeInfo[] = {
                    VIR_STORAGE_POOL_SOURCE_NETWORK |
                    VIR_STORAGE_POOL_SOURCE_NAME),
      },
-     .volOptions = {
-         .defaultFormat = VIR_STORAGE_FILE_RAW,
-         .formatToString = virStoragePoolFormatDiskTypeToString,
-     }
     },
     {.poolType = VIR_STORAGE_POOL_GLUSTER,
      .poolOptions = {
index e1d6a9e27d1e02221c6ff30cf670a0947de62706..d6e920bb8101c07d0c4ccb1c9e7709b51bb61903 100644 (file)
@@ -6,6 +6,5 @@
   <allocation unit='bytes'>0</allocation>
   <target>
     <path>sheepdog:test2</path>
-    <format type='unknown'/>
   </target>
 </volume>