This change determines if the VM's virtual disk is on SSD and make this
information available to guest. This is already implemented on ESX and
Mac OS. This change implements it on Windows and Linux.
On Linux rotational property of the disk and block device corresponding
to logical volume can be read from /sys/block/dev-name/queue/rotational
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
}
+/*
+ *-----------------------------------------------------------------------------
+ *
+ * File_GetParent --
+ *
+ * The canPath is a canonical file path. Change it in place to the
+ * canonical file path of its parent directory. See FilePosixGetParent
+ * for more detail.
+ *
+ * Side effects:
+ * None
+ *
+ *-----------------------------------------------------------------------------
+ */
+
+Bool
+File_GetParent(Unicode *canPath) // IN/OUT: Canonical file path
+{
+ return FilePosixGetParent(canPath);
+}
+
+
/*
*----------------------------------------------------------------------
*
Bool File_IsCharDevice(ConstUnicode pathName);
+Bool File_GetParent(Unicode *canPath);
+
Bool File_IsRemote(ConstUnicode pathName);
Bool File_IsEmptyDirectory(ConstUnicode pathName);
char *File_GetUniqueFileSystemID(const char *pathName);
+#ifdef _WIN32
+Unicode File_GetVolumeGUID(ConstUnicode pathName);
+#endif
+
Bool File_GetTimes(ConstUnicode pathName,
VmTimeType *createTime,
VmTimeType *accessTime,
Bool Util_GetProcessName(pid_t pid, char *bufOut, size_t bufOutSize);
#endif
+#if defined __linux__ && !defined VMX86_SERVER
+Bool Util_IsPhysicalSSD(const char* device);
+#endif
+
// backtrace functions and utilities
#define UTIL_BACKTRACE_LINE_LEN (511)