}
VOP_UNLOCK(vp, 0, curproc);
afile->vnode = vp;
+#ifdef AFS_OBSD39_ENV
+ afile->size = VTOI(vp)->i_ffs1_size;
+#else
afile->size = VTOI(vp)->i_ffs_size;
+#endif
afile->offset = 0;
afile->proc = NULL;
afile->inum = ainode; /* for hint validity checking */
struct vrequest treq;
AFS_STATCNT(afs_xsetgroups);
- AFS_GLOCK();
+ AFS_GLOCKP(p);
code = afs_InitReq(&treq, p->p_rcred);
- AFS_GUNLOCK();
+ AFS_GUNLOCKP(p);
if (code)
return code;
*/
if (PagInCred(p->p_rcred) == NOPAG) {
if (((treq.uid >> 24) & 0xff) == 'A') {
- AFS_GLOCK();
+ AFS_GLOCKP(p);
/* we've already done a setpag, so now we redo it */
AddPag(p, treq.uid, &p->p_rcred);
- AFS_GUNLOCK();
+ AFS_GUNLOCKP(p);
}
}
return code;
#define gop_lookupname(fnamep, segflg, followlink, compvpp) \
afs_nbsd_lookupname((fnamep), (segflg), (followlink), (compvpp))
+#ifdef AFS_OBSD39_ENV
+#define afs_osi_lockmgr(l, f, i, p) lockmgr((l), (f), (i))
+#else
+#define afs_osi_lockmgr(l, f, i, p) lockmgr((l), (f), (i), (p))
+#endif
+
#ifdef KERNEL
+#define AFS_GLOCK() AFS_GLOCKP(curproc)
+#define AFS_GUNLOCK() AFS_GUNLOCKP(curproc)
#ifdef AFS_GLOBAL_SUNLOCK
extern struct proc *afs_global_owner;
extern struct lock afs_global_lock;
-#define AFS_GLOCK() \
+#define AFS_GLOCKP(p) \
do { \
- osi_Assert(curproc); \
- lockmgr(&afs_global_lock, LK_EXCLUSIVE, 0, curproc); \
+ osi_Assert(p); \
+ afs_osi_lockmgr(&afs_global_lock, LK_EXCLUSIVE, 0, (p)); \
osi_Assert(afs_global_owner == NULL); \
- afs_global_owner = curproc; \
+ afs_global_owner = (p); \
} while (0)
-#define AFS_GUNLOCK() \
+#define AFS_GUNLOCKP(p) \
do { \
- osi_Assert(curproc); \
- osi_Assert(afs_global_owner == curproc); \
+ osi_Assert(p); \
+ osi_Assert(afs_global_owner == (p)); \
afs_global_owner = NULL; \
- lockmgr(&afs_global_lock, LK_RELEASE, 0, curproc); \
+ afs_osi_lockmgr(&afs_global_lock, LK_RELEASE, 0, (p)); \
} while(0)
#define ISAFS_GLOCK() (afs_global_owner == curproc && curproc)
#else
-extern struct simplelock afs_global_lock;
-#define AFS_GLOCK()
-#define AFS_GUNLOCK()
+extern struct lock afs_global_lock;
+#define AFS_GLOCKP(p)
+#define AFS_GUNLOCKP(p)
#define AFS_ASSERT_GLOCK()
#define ISAFS_GLOCK() 1
#endif
if (!vc)
panic("afs_nbsd_lock: null vcache");
- return lockmgr(&vc->rwlock, ap->a_flags | LK_CANRECURSE, &vp->v_interlock,
+ return afs_osi_lockmgr(&vc->rwlock, ap->a_flags | LK_CANRECURSE, &vp->v_interlock,
ap->a_p);
}
if (!vc)
panic("afs_nbsd_unlock: null vcache");
- return lockmgr(&vc->rwlock, ap->a_flags | LK_RELEASE, &vp->v_interlock,
+ return afs_osi_lockmgr(&vc->rwlock, ap->a_flags | LK_RELEASE, &vp->v_interlock,
ap->a_p);
}
#define SYS_NAME_ID_i386_fbsd_52 2107
#define SYS_NAME_ID_i386_fbsd_53 2108
#define SYS_NAME_ID_i386_fbsd_60 2112
+#define SYS_NAME_ID_i386_fbsd_61 2113
#define SYS_NAME_ID_ia64_linux2 2200
#define SYS_NAME_ID_ia64_linux22 2201
#define SYS_NAME_ID_i386_obsd36 2605
#define SYS_NAME_ID_i386_obsd37 2606
#define SYS_NAME_ID_i386_obsd38 2607
+#define SYS_NAME_ID_i386_obsd39 2608
#define SYS_NAME_ID_amd64_linux2 2700
#define SYS_NAME_ID_amd64_linux22 2701
# $Id$
+# This doesn't actually build a package any more
+
SRC=../../../../..
umask 022
echo '/afs:/usr/vice/cache:96000' >usr/vice/etc/cacheinfo
-pkg_create -v -h -f packinglist -c -OpenAFS -d desc -p / -s $PWD openafs-client
+tar chfvz openafs-client.tgz usr/vice
+
+#pkg_create -v -h -f packinglist -c -OpenAFS -d desc -p / -s $PWD openafs-client
# $Id$
+if [ `id -u` != "0" ]; then
+ echo "Must be root; current id="`id -u`
+ exit 1
+fi
+
umask 022
if [ ! -d /afs ]; then
mkdir /afs
fi
+chown root.bin /usr/vice /usr/vice/cache
+chown -R root.bin /usr/vice/bin /usr/vice/etc
+
strip -x /usr/vice/bin/*
echo "Fetching CellServDB..."