]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
esx: set vmfs fs type for vmfs-based datastores
authorPino Toscano <ptoscano@redhat.com>
Fri, 15 Nov 2019 11:51:51 +0000 (12:51 +0100)
committerPino Toscano <ptoscano@redhat.com>
Fri, 20 Dec 2019 13:31:08 +0000 (14:31 +0100)
This way they are correctly represented:
  <source>
    <format type='vmfs'/>
  </source>
... instead of 'auto'.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/esx/esx_storage_backend_vmfs.c

index b890825a40437d84284be13cdc5f0ef87bc409a1..61b30c3c1dc39936ebd21cb3927b93ccfcf60ff7 100644 (file)
@@ -531,6 +531,7 @@ esxStoragePoolGetXMLDesc(virStoragePoolPtr pool, unsigned int flags)
         }
     } else if (esxVI_VmfsDatastoreInfo_DynamicCast(info)) {
         def.type = VIR_STORAGE_POOL_FS;
+        def.source.format = VIR_STORAGE_POOL_FS_VMFS;
         /*
          * FIXME: I'm not sure how to represent the source and target of a
          * VMFS based datastore in libvirt terms