From: Matt Benjamin Date: Thu, 22 Jan 2009 21:49:03 +0000 (+0000) Subject: fbsd-ustrategy-20090122 X-Git-Tag: openafs-devel-1_5_61~577 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6742f2054ac96bcec19c01d408542c94de9a55f1;p=packages%2Fo%2Fopenafs.git fbsd-ustrategy-20090122 LICENSE IPL10 make freebsd ustrategy correct --- diff --git a/src/afs/FBSD/osi_vnodeops.c b/src/afs/FBSD/osi_vnodeops.c index 2b401de8f..146e09fc9 100644 --- a/src/afs/FBSD/osi_vnodeops.c +++ b/src/afs/FBSD/osi_vnodeops.c @@ -1558,7 +1558,7 @@ afs_vop_strategy(ap) { int error; AFS_GLOCK(); - error = afs_ustrategy(ap->a_bp); + error = afs_ustrategy(ap->a_bp, osi_cred()); AFS_GUNLOCK(); return error; } diff --git a/src/afs/afs_prototypes.h b/src/afs/afs_prototypes.h index 1c62cc08a..afc12d7a3 100644 --- a/src/afs/afs_prototypes.h +++ b/src/afs/afs_prototypes.h @@ -1204,7 +1204,7 @@ extern int afs_rename(OSI_VC_DECL(aodp), char *aname1, struct vcache *andp, #endif /* VNOPS/afs_vnop_strategy.c */ -#if defined(AFS_SUN5_ENV) || defined(AFS_OSF_ENV) || defined(AFS_DARWIN_ENV) +#if defined(AFS_SUN5_ENV) || defined(AFS_OSF_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV) extern int afs_ustrategy(register struct buf *adp, struct AFS_UCRED *credp); #else extern int afs_ustrategy(register struct buf *adp);