[OpenAFS-devel] 2 words: hatchet job
Derrick J Brashear
shadow@dementia.org
Sun, 27 Mar 2005 12:45:58 -0500 (EST)
/afs/andrew.cmu.edu/usr/shadow/openafs-dead-code.diff
Please review, try, whatever, this diff. It's in my pile but I don't have
time to actually try it. What it does:
Code ifdef'd any of AFS_MACH_ENV, AFS_GFS_ENV, AFS_DEC_ENV dies
Code ifdef'd AFS_SUN_ENV either becomes AFS_SUN5_ENV or dies as
appropriate, in the kernel only. The database servers etc are probably
still buildable, and I still have a SunOS 4.1.4 machine. ;-) But the
Solaris vnops get all SunOS 4 code nuked.
Uses of AFS_ALPHA_ENV which secretly meant OSF/1,D/UX,Tru64 become
AFS_OSF_ENV.
Bozon lock use gets its own ifdef. OSF and Solaris define it. Darwin and
any BSDs have bozon lock usage removed: note that only OSF and Solaris
were bothering to *init* the bozon lock during NewVCache. Bozon locks are
for platforms where basically we could end up deadlocking ourselves
because of how locks are handled.
Some nonsensical ifdefs removed.
Some if 0'd code removed.
Some obsolete code (hpux pre-10, for instance) removed.