/* vdev_label_start returns the physical disk offset (in bytes) of label "l".  */
static uint64_t vdev_label_start(uint64_t psize, int l)
/* vdev_label_start returns the physical disk offset (in bytes) of label "l".  */
static uint64_t vdev_label_start(uint64_t psize, int l)
{
	return (l * sizeof(vdev_label_t) + (l < VDEV_LABELS / 2 ?
										0 : psize -
										VDEV_LABELS * sizeof(vdev_label_t)));
}