LICENSE IPL10
FIXES 104698, 104699, 104305
make cellname get init'd right. correct startup argument order to match
what afsd does. call lookupname correctly (when did this break?)
at the same time, move the lookupname define out of afs_osi.h and into each
osi_machdep.h
(cherry picked from commit
c61a8f37c9957034961aed8abc2a1adb046247d3)
/* This gets redefined from ucred to cred in osi_vfs.h, just do it right */
#define AFS_UCRED cred
+#undef gop_lookupname
+#define gop_lookupname(fnamep,segflg,followlink,compvpp) lookupname((fnamep),(segflg),(followlink),NULL,(compvpp), NULL)
+
#define osi_vnhold(avc, r) do { VN_HOLD(AFSTOV(avc)); } while(0)
#undef afs_osi_Alloc_NoSleep
#define afs_bufferpages bufpages
+#undef gop_lookupname
+#define gop_lookupname(fnamep,segflg,followlink,compvpp) lookupname((fnamep),(segflg),(followlink),NULL,(compvpp))
+
#define osi_vnhold(avc,r) do { \
if ((avc)->vrefCount) { VN_HOLD((struct vnode *)(avc)); } \
else osi_Panic("refcnt==0"); } while(0)
/*
* Set the primary cell name.
*/
- call_syscall(AFSOP_SET_THISCELL, (long)afs_LclCellName, 0, 0, 0, 0);
+ call_syscall(AFSCALL_CALL, AFSOP_SET_THISCELL, (long)afs_LclCellName, 0, 0, 0);
if ((logfd = fopen(fullpn_AFSLogFile, "r+")) == 0) {
if (afsd_verbose)
#define afs_hz HZ
#define osi_Time() (time(NULL))
+#undef gop_lookupname
+#define gop_lookupname(fnamep,segflg,followlink,compvpp) lookupname((fnamep),(segflg),(followlink),(compvpp))
+
#define osi_vnhold(avc, r) do { VN_HOLD(AFSTOV(avc)); } while(0)
#define afs_suser(x) suser(x)
#endif
#endif
-#ifdef AFS_SGI65_ENV
-#define gop_lookupname(fnamep,segflg,followlink,compvpp) \
- lookupname((fnamep),(segflg),(followlink),NULL,(compvpp),\
- NULL)
-#else
-#define gop_lookupname(fnamep,segflg,followlink,compvpp) \
- lookupname((fnamep),(segflg),(followlink),NULL,(compvpp))
-#endif
-
/*
* In IRIX 6.5 we cannot have DEBUG turned on since certain
* system-defined structures are a different size with DEBUG on, the