freebsd: track RELENG_8
authorMatt Benjamin <matt@linuxbox.com>
Wed, 23 Dec 2009 00:48:02 +0000 (19:48 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Thu, 31 Dec 2009 13:08:29 +0000 (05:08 -0800)
commit64cacab28ba7b9692db0b494e2d4399c535bd1ae
tree45201e62a40ff2fe99f8c6416c4ffb0bb2b14174
parente4708157ea55ef79d1c3a5387859618bdba90395
freebsd: track RELENG_8

Fixes to re-enable build and load of kernel module on FreeBSD's
RELENG_8.  Includes the following changes:

Remove cred pointer argument to vop_getattr and vop_setattr.
Restore VSUID and VGUID defines, but move to osi_machdep.h.
Fixup calls to vinvalbuf, create a macro to avoid too many ifdefs.
Revert incorrect definition of gop_lookupname_user.  Avoid
uninitialized use of 'code' variable in vop_access, and track
new a_accmode member name.  Remove cred pointer in VFS_STATFS.
Avoid including sys/ioctl.h in kernel mode (formerly had no
effect, it's now an error).  Avoid using an empty file as an
object file in shlibafsrpc link.  Replace suser() calls with calls
to priv_check, using defined OpenAFS privileges (thanks due to
Ben Kaduk).

Change-Id: I96fc29599a797b975630c8fa5b8b84798b3740a6
Reviewed-on: http://gerrit.openafs.org/1023
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/FBSD/osi_file.c
src/afs/FBSD/osi_machdep.h
src/afs/FBSD/osi_misc.c
src/afs/FBSD/osi_vm.c
src/afs/FBSD/osi_vnodeops.c
src/afs/afs_init.c
src/afs/afs_vcache.c
src/gtx/curseswindows.c
src/shlibafsrpc/Makefile.in
src/util/vice.h