Home | History | Annotate | Download | only in sysinst

Lines Matching defs:marg

213 	struct part_edit_info *marg = arg;
217 if (marg->cur_id == NO_PART ||
218 !marg->parts->pscheme->get_part_info(marg->parts, marg->cur_id,
220 pinfo = marg->cur;
221 marg->cur.start = getpartoff(marg->parts, marg->cur.start);
222 max_size = marg->parts->pscheme->max_free_space_at(marg->parts,
224 max_size += pinfo.start - marg->cur.start;
225 if (marg->cur.size > max_size)
226 marg->cur.size = max_size;
234 struct part_edit_info *marg = arg;
237 if (marg->cur_id == NO_PART ||
238 !marg->parts->pscheme->get_part_info(marg->parts, marg->cur_id,
240 pinfo = marg->cur;
241 marg->cur.size = getpartsize(marg->parts, pinfo.start,
242 marg->cur.start, marg->cur.size);
250 struct part_edit_info *marg = arg;
252 marg->cur.flags ^= PTI_INSTALL_TARGET;
270 struct part_edit_info *marg = arg;
273 if (marg->cur_id == NO_PART)
276 if (!marg->parts->pscheme->delete_partition(marg->parts, marg->cur_id,
280 marg->num_changed = true; /* reload list of partitions */
281 marg->cancelled = true; /* do not write back cur data */
292 struct part_edit_info *marg = arg;
294 marg->cancelled = true;
321 struct part_edit_info *marg = arg;
322 size_t attr_no = m->cursel - marg->first_custom_opt;
325 switch (marg->parts->pscheme->custom_attributes[attr_no].type) {
327 marg->parts->pscheme->custom_attribute_toggle(
328 marg->parts, marg->cur_id, attr_no);
332 marg->parts->pscheme->format_custom_attribute(
333 marg->parts, marg->cur_id, attr_no, &marg->cur,
336 marg->parts->pscheme->custom_attributes[attr_no].label,
338 marg->parts->pscheme->custom_attribute_set_str(
339 marg->parts, marg->cur_id, attr_no, line);
628 struct part_edit_info *marg = arg;
651 n < marg->parts->pscheme->custom_attribute_count; n++) {
653 marg->parts->pscheme->custom_attributes[n].label));
660 if (line >= marg->first_custom_opt) {
661 size_t attr_no = line-marg->first_custom_opt;
662 marg->parts->pscheme->format_custom_attribute(
663 marg->parts, marg->cur_id, attr_no, &marg->cur,
667 marg->parts->pscheme->custom_attributes[attr_no].label),
675 marg->cur.nat_type != NULL
676 ? marg->cur.nat_type->description
681 marg->cur.start / (daddr_t)sizemult, multname);
685 marg->cur.size / (daddr_t)sizemult, multname);
689 (marg->cur.start + marg->cur.size - 1) / (daddr_t)sizemult,
694 (marg->cur.nat_type->generic_ptype == PT_root &&
695 (marg->cur.flags & PTI_INSTALL_TARGET)) ? yes : no);
704 struct part_edit_info *marg = arg;
715 may_change_type = marg->cur_id == NO_PART
716 || marg->parts->pscheme->part_type_can_change == NULL
717 || marg->parts->pscheme->part_type_can_change(
718 marg->parts, marg->cur_id);
723 if (marg->cur_id != NO_PART) {
732 if (marg->cur_id != NO_PART) {
733 DISABLE(PTN_OPT_INSTALL, marg->cur.nat_type == NULL
734 || marg->cur.nat_type->generic_ptype != PT_root);
737 if (marg->cur_id == NO_PART)
741 marg->parts->pscheme->custom_attribute_count; attr_no++) {
743 marg->parts->pscheme->custom_attribute_writable(
744 marg->parts, marg->cur_id, attr_no);
745 DISABLE(attr_no+marg->first_custom_opt, !writable);