Lines Matching defs:mbr
49 * Since the mbr only has 32bit fields for sector addresses, we do the same.
108 int found_mbr; /* set if disk has a valid mbr */
141 struct mbr_sector *mbr;
160 mbr = (void *)a->bp->b_data;
161 if (mbr->mbr_magic != htole16(MBR_MAGIC))
167 if (mbr->mbr_parts[0].mbrp_type == MBR_PTYPE_PMBR
168 && mbr->mbr_parts[1].mbrp_type == MBR_PTYPE_UNUSED
169 && mbr->mbr_parts[2].mbrp_type == MBR_PTYPE_UNUSED
170 && mbr->mbr_parts[3].mbrp_type == MBR_PTYPE_UNUSED)
174 memcpy(ptns, &mbr->mbr_parts, sizeof ptns);
207 /* This mbr doesn't look good.... */
208 a->msg = "mbr partition exceeds disk size";
426 * Cleared if we find an mbr or a netbsd label.
441 * Scan mbr searching for netbsd partition and saving
692 /* Write label to all mbr partitions */
716 /* osdep => we expect an mbr with label in netbsd ptn */
719 /* Write/update the label to every netbsd mbr partition */
723 * don't have a valid mbr (always update an existing one) */