The
getlabelsector() and
getlabeloffset() functions return values which describe the exact on-disk location of the
disklabel(5) on the current system, or -1 on error. These functions supersede the hardcoded
LABELSECTOR and
LABELOFFSET definitions previously used to derive the location of the
disklabel(5).