sa_hdr_phys
sa_hdr_phys_t *sa_hdr_phys = SA_GET_HDR(hdl, buftype);
if (sa_hdr_phys->sa_magic == SA_MAGIC)
sa_hdr_phys->sa_magic = BSWAP_32(sa_hdr_phys->sa_magic);
sa_hdr_phys->sa_layout_info = BSWAP_16(sa_hdr_phys->sa_layout_info);
if (SA_HDR_SIZE(sa_hdr_phys) > 8)
num_lengths += (SA_HDR_SIZE(sa_hdr_phys) - 8) >> 1;
sa_hdr_phys->sa_lengths[i] =
BSWAP_16(sa_hdr_phys->sa_lengths[i]);
sa_attr_iter(hdl->sa_os, sa_hdr_phys, DMU_OT_SA,
sa_hdr_phys_t *sa_hdr_phys;
sa_hdr_phys = SA_GET_HDR(hdl, buftype);
if (IS_SA_BONUSTYPE(bonustype) && sa_hdr_phys->sa_magic != SA_MAGIC &&
sa_hdr_phys->sa_magic != 0) {
VERIFY(BSWAP_32(sa_hdr_phys->sa_magic) == SA_MAGIC);
idx_tab = sa_find_idx_tab(hdl->sa_os, bonustype, sa_hdr_phys);