the slice code. The effect up to now has been insignficant, but improved buffer allocation code will break with this problem.
reading and writing the slice tables and labels. subr_dkbad.c implements everything related to bad sector remapping using the bad144 format.