int access, // IN:
FileIOOpenAction action, // IN:
int mode, // IN: mode_t for creation
- uint32 msecMaxWaitTime) // IN: Ignored
+ uint32 maxWaitTimeMsec) // IN: Ignored
{
uid_t uid = -1;
int fd = -1;
int access, // IN:
FileIOOpenAction action, // IN:
int mode, // IN: mode_t for creation
- uint32 msecMaxWaitTime) // IN:
+ uint32 maxWaitTimeMsec) // IN:
{
return FileIOCreateRetry(file, pathName, access, action, mode,
- msecMaxWaitTime);
+ maxWaitTimeMsec);
}
const char *pathName, // IN:
int access, // IN:
FileIOOpenAction action, // IN:
- uint32 msecMaxWaitTime) // IN:
+ uint32 maxWaitTimeMsec) // IN:
{
#if defined(VMX86_SERVER)
FileIOResult res;
- uint32 msecWaitTime = 0;
- uint32 msecMaxLoopTime = 3000; // 3 seconds
+ uint32 waitTimeMsec = 0;
+ uint32 maxLoopTimeMsec = 3000; // 3 seconds
/*
* Workaround the ESX NFS client bug as seen in PR 1341775.
while (TRUE) {
res = FileIOCreateRetry(file, pathName, access, action,
- S_IRUSR | S_IWUSR, msecMaxWaitTime);
+ S_IRUSR | S_IWUSR, maxWaitTimeMsec);
if (res == FILEIO_ERROR && Err_Errno() == ESTALE &&
- msecWaitTime < msecMaxLoopTime) {
+ waitTimeMsec < maxLoopTimeMsec) {
Log(LGPFX "FileIOCreateRetry (%s) failed with ESTALE, retrying.\n",
pathName);
- msecWaitTime += FileSleeper(100, 300);
+ waitTimeMsec += FileSleeper(100, 300);
} else {
break;
}
return res;
#else
return FileIOCreateRetry(file, pathName, access, action,
- S_IRUSR | S_IWUSR, msecMaxWaitTime);
+ S_IRUSR | S_IWUSR, maxWaitTimeMsec);
#endif
}
/*********************************************************
- * Copyright (C) 2006-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2006-2017 VMware, Inc. All rights reserved.
*
* 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
int
File_RenameRetry(const char *oldFile, // IN:
const char *newFile, // IN:
- uint32 msecMaxWaitTime) // IN: Unused.
+ uint32 maxWaitTimeMsec) // IN: Unused.
{
return File_Rename(oldFile, newFile);
}