}
#if !defined(_WIN32)
- if (fchmod(tempFD->posix, stbuf.st_mode)) {
- Log("%s: Failed to chmod temporary file, errno: %d\n",
- __FUNCTION__, errno);
- ASSERT(!vmx86_server); // For APD, hosted can fall-back and write directly
- goto bail;
- }
- if (fchown(tempFD->posix, stbuf.st_uid, stbuf.st_gid)) {
- Log("%s: Failed to chown temporary file, errno: %d\n",
- __FUNCTION__, errno);
- ASSERT(!vmx86_server); // For APD, hosted can fall-back and write directly
- goto bail;
+ /*
+ * On ESX we always use the vmkernel atomic file swap primitive, so
+ * there's no need to set the permissions and owner of the temp file.
+ */
+
+ if (!HostType_OSIsVMK()) {
+ if (fchmod(tempFD->posix, stbuf.st_mode)) {
+ Log("%s: Failed to chmod temporary file, errno: %d\n",
+ __FUNCTION__, errno);
+ status = FILEIO_ERROR;
+ goto bail;
+ }
+ if (fchown(tempFD->posix, stbuf.st_uid, stbuf.st_gid)) {
+ Log("%s: Failed to chown temporary file, errno: %d\n",
+ __FUNCTION__, errno);
+ status = FILEIO_ERROR;
+ goto bail;
+ }
}
#endif
* (supported on ESX file systems)
*/
#define FILEIO_OPEN_MULTIWRITER_LOCK (1 << 14)
+/*
+ * Flag the file to be cached by the vBlob caching layer
+ */
+#define FILEIO_OPEN_USE_AIO_CACHE (1 << 15)
/*
* Valid only for MacOS. It eventually results into O_EXLOCK flag passed to open
* system call.
LOGLEVEL_VAR(vusbkeyboard), \
LOGLEVEL_VAR(vusbhid), \
LOGLEVEL_VAR(vusbtablet), \
+ LOGLEVEL_VAR(vusbaudio), \
LOGLEVEL_VAR(hidQueue), \
LOGLEVEL_VAR(pci_1394), \
LOGLEVEL_VAR(1394), \
LOGLEVEL_VAR(serviceUser), /* lib/serviceUser */ \
LOGLEVEL_VAR(ssl), \
LOGLEVEL_VAR(vmrc), \
+ LOGLEVEL_VAR(namespaceDb), \
+ LOGLEVEL_VAR(namespaceMgr), \
+ LOGLEVEL_VAR(blobMgr), \
+ LOGLEVEL_VAR(vblobbe), \
+ LOGLEVEL_VAR(blobFileBE), \
+ LOGLEVEL_VAR(blobPythonBE), \
+ LOGLEVEL_VAR(grainTrack), \
/* end of list */
LOGLEVEL_EXTENSION_DECLARE(LOGLEVEL_USER);
*/
#define RANK_slpv2GlobalLock (RANK_libLockBase + 0x4305)
+/*
+ * vigor (must be < VMDB range and < disklib, see bug 741290)
+ */
+#define RANK_vigorClientLock (RANK_libLockBase + 0x4400)
+#define RANK_vigorOfflineClientLock (RANK_libLockBase + 0x4410)
+
/*
* NFC lib lock
*/
*/
#define RANK_popPendingListLock (RANK_libLockBase + 0x4605)
-/*
- * vigor (must be < VMDB range and < disklib, see bug 741290)
- */
-#define RANK_vigorClientLock (RANK_libLockBase + 0x4700)
-#define RANK_vigorOfflineClientLock (RANK_libLockBase + 0x4710)
-
/*
* disklib and I/O related locks
*/