]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common source file not applicable to open-vm-tools.
authorKruti <kpendharkar@vmware.com>
Mon, 18 Mar 2024 18:03:48 +0000 (11:03 -0700)
committerKruti <kpendharkar@vmware.com>
Mon, 18 Mar 2024 18:03:48 +0000 (11:03 -0700)
open-vm-tools/lib/file/filePosix.c

index eaf5da443cd9538a8ad3a1436c12d2f1c515f634..a62a0b2bf616ed876f78357a2c689bfac9b9af23 100644 (file)
@@ -1,5 +1,6 @@
 /*********************************************************
- * Copyright (c) 2006-2021, 2023 VMware, Inc. All rights reserved.
+ * Copyright (c) 2006-2024 Broadcom. All rights reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -1688,10 +1689,12 @@ File_DoesVolumeSupportConvertBlocks(const char *pathName)  // IN:
 
    /*
     * Only regular VMFS (no VMFS-L, VMFSOS, or other oddities) and
-    * only version 6 and above.
+    * only version 6 and above. Also, no VMFS on VSAN/VVol objects.
     */
    supports = Str_Strcmp(fsAttrs->fsType, FS_VMFS_ON_ESX) == 0 &&
-      fsAttrs->versionNumber >= 6;
+      fsAttrs->versionNumber >= 6 &&
+      strcmp(fsAttrs->driverType, "vsan") != 0 &&
+      strcmp(fsAttrs->driverType, "vvol") != 0;
 
    Posix_Free(fsAttrs);
    return supports;