Home | History | Annotate | Download | only in i386

Lines Matching refs:parts

116 	if (pm->parts == NULL) {
124 struct disk_partitions *parts =
127 if (!parts)
130 pm->parts = parts;
135 if (get_bios_info(pm->diskdev, pm->parts, &bcyl, &bhead, &bsec)
136 && pm->parts->pscheme->change_disk_geom != NULL)
137 pm->parts->pscheme->change_disk_geom(pm->parts,
146 if (pm->parts->pscheme->secondary_partitions == NULL ||
147 pm->parts->pscheme->secondary_scheme == NULL)
153 res = edit_outer_parts(pm->parts);
159 pm->parts->pscheme->destroy_part_scheme(pm->parts);
160 pm->parts = NULL;
201 struct disk_partitions *parts)
204 if (parts->parent == NULL)
207 parts = parts->parent;
209 msg_display_subst(MSG_dofdisk, 3, parts->disk,
210 msg_string(parts->pscheme->name),
211 msg_string(parts->pscheme->short_name));
214 if (!parts->pscheme->write_to_disk(parts)) {
227 struct disk_partitions *parts)
304 install->infos[0].parts->pscheme->get_part_device(
305 install->infos[0].parts, install->infos[0].cur_part_id,
344 if (!boot->parts->pscheme->get_part_device(boot->parts,
537 md_check_mbr(struct disk_partitions *parts, mbr_info_t *mbri, bool quiet)
550 if (parts->pscheme->guess_install_target == NULL ||
551 !parts->pscheme->guess_install_target(parts, &inst_start,
553 inst_start = parts->disk_start;
554 inst_size = parts->disk_size;
566 if (parts->pscheme->size_limit)
567 root_limit = min(parts->pscheme->size_limit,
568 parts->disk_size);
570 root_limit = parts->disk_size;
645 (parts->num_part > 1 && (fl & (NETBSD_NAMED | ACTIVE_NAMED)))) {
689 return ask_reedit(parts);
693 md_parts_use_wholedisk(struct disk_partitions *parts)
701 return parts_use_wholedisk(parts, 0, NULL);
703 boot_part.nat_type = parts->pscheme->get_generic_part_type(
706 return parts_use_wholedisk(parts, 1, &boot_part);
710 get_bios_info(const char *dev, struct disk_partitions *parts, int *bcyl,
744 if (guess_biosgeom_from_parts(parts, &cyl, &head, &sec) >= 0
752 guess_biosgeom_from_parts(parts, &cyl, &head, &sec);
789 set_bios_geom(parts, bcyl, bhead, bsec);
805 /* returns false if no write-back of parts is required */
807 md_mbr_update_check(struct disk_partitions *parts, mbr_info_t *mbri)
922 md_gpt_post_write(struct disk_partitions *parts, part_id root_id,
929 if (!parts->pscheme->get_part_info(parts, root_id, &info))
932 info.start, parts->disk) != 0)
957 struct disk_partitions *parts;
984 parts = pm->parts;
985 if (parts->parent != NULL)
986 parts = parts->parent;
987 for (pno = 0; pno < parts->num_part; pno++) {
988 if (!parts->pscheme->get_part_info(parts, pno, &info))