]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes in shared code that don't affect open-vm-tools functionality.
authorVMware, Inc <>
Mon, 26 Jul 2010 18:06:58 +0000 (11:06 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 26 Jul 2010 18:06:58 +0000 (11:06 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/file/filePosix.c

index 46fd8a17bf9ca66559d59133c6b29df813722226..09d5f95f0d3e0e1c6d7d001fa95f11ece90467aa 100644 (file)
@@ -1757,6 +1757,16 @@ File_IsSameFile(ConstUnicode path1,  // IN:
       return FALSE;
    }
 
+   if (HostType_OSIsPureVMK()) {
+      /*
+       * On ESX, post change 1074635 the st_dev field of the stat structure
+       * is valid and differentiates between resident devices or NFS file
+       * systems - no need to use statfs to obtain file system information.
+       */
+
+      return st1.st_dev == st2.st_dev;
+   }
+
    if (Posix_Statfs(path1, &stfs1) != 0) {
       return FALSE;
    }