}
}
+#if !defined(__FreeBSD__) && !defined(sun)
+ /*
+ * File_GetFreeSpace is not defined for FreeBSD
+ */
+ if (createdDir) {
+ /*
+ * Check for free space on destination filesystem.
+ * We only check for free space if the destination directory
+ * did not exist. In this case, we will not be overwriting any existing
+ * paths, so we need as much space as srcName.
+ */
+ int64 srcSize;
+ int64 freeSpace;
+ srcSize = File_GetSizeEx(srcName);
+ freeSpace = File_GetFreeSpace(dstName, TRUE);
+ if (freeSpace < srcSize) {
+ Unicode spaceStr = Msg_FormatSizeInBytes(srcSize);
+ Msg_Append(MSGID(File.MoveTree.dst.insufficientSpace)
+ "There is not enough space in the file system to "
+ "move the directory tree. Free %s and try again.",
+ spaceStr);
+ free(spaceStr);
+ return FALSE;
+ }
+ }
+#endif
+
if (File_CopyTree(srcName, dstName, overwriteExisting, FALSE)) {
ret = TRUE;
#define SCSI_MAX_CONTROLLERS 4 // Need more than 1 for MSCS clustering
#define SCSI_MAX_DEVICES 16 // BT-958 emulates only 16
#define PVSCSI_MAX_DEVICES 255 // 255 (including the controller)
+
+/************* SATA implementation limits ********************************/
+#define SATA_MAX_CONTROLLERS 4
+#define SATA_MAX_DEVICES 30
+
/*
- * VSCSI_BV_INTS is the number of uint32's needed for a bit vector
+ * VSCSI_BV_INTS is the number of uint32's needed for a bit vector
* to cover all scsi devices per target.
*/
#define VSCSI_BV_INTS CEILING(PVSCSI_MAX_DEVICES, 8 * sizeof (uint32))
#define PRODUCT_PLAYER_NAME_FOR_LICENSE PRODUCT_PLAYER_NAME
#define PRODUCT_ACE_PLAYER_NAME MAKE_NAME(PRODUCT_ACE_PLAYER_BRIEF_NAME)
#define PRODUCT_ACE_MANAGEMENT_SERVER_NAME MAKE_NAME(PRODUCT_ACE_MANAGEMENT_SERVER_BRIEF_NAME)
+#define PRODUCT_MAC_DESKTOP_NAME_FOR_LICENSE "VMware Fusion for Mac OS"
#define PRODUCT_VMLS_SHORT_NAME "VMLS"
#define PRODUCT_VMLS_NAME MAKE_NAME("License Server")
# define PRODUCT_SMP_NAME_FOR_LICENSE PRODUCT_ESX_SMP_NAME
# elif defined(VMX86_DESKTOP)
# if defined(__APPLE__)
-# define PRODUCT_NAME_FOR_LICENSE "VMware Fusion for Mac OS"
+# define PRODUCT_NAME_FOR_LICENSE PRODUCT_MAC_DESKTOP_NAME_FOR_LICENSE
# else
# define PRODUCT_NAME_FOR_LICENSE "VMware Workstation"
# endif
*/
# if defined(VMX86_DESKTOP)
# if defined(__APPLE__)
-# define PRODUCT_NAME_FOR_LICENSE "VMware Fusion for Mac OS"
+# define PRODUCT_NAME_FOR_LICENSE PRODUCT_MAC_DESKTOP_NAME_FOR_LICENSE
# else
# define PRODUCT_NAME_FOR_LICENSE "VMware Workstation"
# endif
NOT_IMPLEMENTED();
}
+char *
+Msg_FormatSizeInBytes(uint64 size)
+{
+ return NULL;
+}
+
+