]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common source files not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Tue, 26 May 2020 22:32:58 +0000 (15:32 -0700)
committerOliver Kurth <okurth@vmware.com>
Tue, 26 May 2020 22:32:58 +0000 (15:32 -0700)
open-vm-tools/lib/file/filePosix.c

index 0cf874ebc8bbfb809b8c50b47c5b08fb360ac10f..5681ebfd3d2a8862b234855d8f44cc2358123df0 100644 (file)
@@ -111,6 +111,8 @@ struct WalkDirContextImpl {
 #define FS_NFS_ON_ESX "NFS"
 /* A string for VMFS on ESX file system type */
 #define FS_VMFS_ON_ESX "VMFS"
+/* A string for vsanD on ESX file system type */
+#define FS_VSAND_ON_ESX "vsanD"
 #define FS_VSAN_URI_PREFIX      "vsan:"
 
 #if defined __ANDROID__
@@ -1488,6 +1490,10 @@ FileIsVMFS(const char *pathName)  // IN:
       /* We want to match anything that starts with VMFS */
       result = strncmp(fsAttrs->fsType, FS_VMFS_ON_ESX,
                        strlen(FS_VMFS_ON_ESX)) == 0;
+      if (!result) {
+         result = strncmp(fsAttrs->fsType, FS_VSAND_ON_ESX,
+                          strlen(FS_VSAND_ON_ESX)) == 0;
+      }
    } else {
       Log(LGPFX" %s: File_GetVMFSAttributes failed\n", __func__);
    }