FBSD: Remove pre-8 code 12/13812/5
authorAndrew Deason <adeason@dson.org>
Mon, 26 Aug 2019 04:21:23 +0000 (23:21 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 10 Dec 2019 22:55:39 +0000 (17:55 -0500)
commit847b63af92dd527de31675a0c3c82c9a57e6c4b3
tree6282dd137ecb77770ee4539d93f5449140793c28
parentf9c716fca1becea5a41fbe86535759ef817c924d
FBSD: Remove pre-8 code

Commit 123f0fb1 (config: remove support for old FreeBSD releases)
removed our support for FreeBSD releases before FreeBSD 8. However,
various areas of code still reference the symbols from those old
versions (e.g. AFS_FBSD53_ENV). Remove our ifdef logic for these old
symbols, according to the following rules:

- In FBSD-specific dirs, assume AFS_FBSD80_ENV is always true (as well
  as the symbols for earlier versions)

- In non-FBSD dirs, convert AFS_FBSD80_ENV to AFS_FBSD_ENV (and do the
  same for all earlier versions)

This allows us to remove code that was specific to older FreeBSD
versions, and simplify some ifdef conditionals.

Also remove the definitions for AFS_FBSD80_ENV and earlier versions in
our existing param.h files.

With this commit, the functions afs_start, afs_vop_lock,
afs_vop_unlock, and afs_vop_islocked are now always unreferenced, so
remove them.

Change-Id: Ia5a5ba5ee5b71a86cb4514305e20f1bb34487100
Reviewed-on: https://gerrit.openafs.org/13812
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Tim Creech <tcreech@tcreech.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
61 files changed:
src/afs/FBSD/osi_file.c
src/afs/FBSD/osi_groups.c
src/afs/FBSD/osi_inode.c
src/afs/FBSD/osi_machdep.h
src/afs/FBSD/osi_misc.c
src/afs/FBSD/osi_module.c
src/afs/FBSD/osi_prototypes.h
src/afs/FBSD/osi_vfsops.c
src/afs/FBSD/osi_vm.c
src/afs/FBSD/osi_vnodeops.c
src/afs/VNOPS/afs_vnop_read.c
src/afs/VNOPS/afs_vnop_strategy.c
src/afs/VNOPS/afs_vnop_write.c
src/afs/afs_init.c
src/afs/afs_osi_vm.c
src/afs/afs_pioctl.c
src/afs/afs_server.c
src/afs/afs_vcache.c
src/afsd/afsd_kernel.c
src/config/param.amd64_fbsd_100.h
src/config/param.amd64_fbsd_101.h
src/config/param.amd64_fbsd_102.h
src/config/param.amd64_fbsd_103.h
src/config/param.amd64_fbsd_104.h
src/config/param.amd64_fbsd_110.h
src/config/param.amd64_fbsd_111.h
src/config/param.amd64_fbsd_112.h
src/config/param.amd64_fbsd_120.h
src/config/param.amd64_fbsd_80.h
src/config/param.amd64_fbsd_81.h
src/config/param.amd64_fbsd_82.h
src/config/param.amd64_fbsd_83.h
src/config/param.amd64_fbsd_84.h
src/config/param.amd64_fbsd_90.h
src/config/param.amd64_fbsd_91.h
src/config/param.amd64_fbsd_92.h
src/config/param.amd64_fbsd_93.h
src/config/param.i386_fbsd_100.h
src/config/param.i386_fbsd_101.h
src/config/param.i386_fbsd_102.h
src/config/param.i386_fbsd_103.h
src/config/param.i386_fbsd_104.h
src/config/param.i386_fbsd_110.h
src/config/param.i386_fbsd_111.h
src/config/param.i386_fbsd_112.h
src/config/param.i386_fbsd_120.h
src/config/param.i386_fbsd_80.h
src/config/param.i386_fbsd_81.h
src/config/param.i386_fbsd_82.h
src/config/param.i386_fbsd_83.h
src/config/param.i386_fbsd_84.h
src/config/param.i386_fbsd_90.h
src/config/param.i386_fbsd_91.h
src/config/param.i386_fbsd_92.h
src/config/param.i386_fbsd_93.h
src/gtx/curseswindows.c
src/libuafs/MakefileProto.FBSD.in
src/rx/FBSD/rx_kmutex.h
src/rx/rx.c
src/rx/rx_kcommon.c
src/util/vice.h