#include "ntops.h"
#else
#include "namei_ops.h"
-#if defined(AFS_SGI_ENV)
-#include <sys/dir.h>
-#else
#include <dirent.h>
-#endif /* AFS_SGI_ENV */
#endif /* AFS_NT40_ENV */
#endif /* AFS_NAMEI_ENV */
#include "vnode.h"
continue; /* Ignore any "special" partitions */
#ifdef AFS_AIX42_ENV
+#ifndef AFS_NAMEI_ENV
{
struct superblock fs;
/* The Log statements are non-sequiters in the SalvageLog and don't
}
}
#endif
+#endif
/* If we're going to always attach this partition, do it later. */
if (VIsAlwaysAttach(part))
unsigned int *globalMask;
int globalMaskIndex;
#endif /* defined(AFS_HPUX_ENV) */
+#ifdef AFS_NAMEI_ENV
+#ifdef AFS_AIX42_ENV
+ char LockFileName[MAXPATHLEN + 1];
+
+ sprintf((char *)&LockFileName, "%s/AFSINODE_FSLock", name);
+ partitionName = (char *) &LockFileName;
+#endif
+#endif
if (!dp) return; /* no partition, will fail later */
if (dp->lock_fd != -1) return;
#if defined(AFS_SUN5_ENV) || defined(AFS_AIX41_ENV)
+#if !defined(AFS_AIX42_ENV) || !defined(AFS_NAMEI_ENV)
partitionName = dp->devName;
+#endif
code = O_RDWR;
#else
partitionName = dp->name;
for (retries=25; retries; retries--) {
dp->lock_fd = open(partitionName, code);
if (dp->lock_fd != -1) break;
+ if (errno == ENOENT)
+ code |= O_CREAT;
pausing.tv_sec = 0;
pausing.tv_usec = 500000;
select(0, NULL, NULL, NULL, &pausing);