Lines Matching defs:find
1002 gpt_add_find(gpt_t gpt, struct gpt_find *find, int ch)
1006 if (find->all > 0) {
1010 find->all = 1;
1013 if (gpt_human_get(gpt, &find->block) == -1)
1017 if (gpt_uint_get(gpt, &find->entry) == -1)
1021 if (gpt_name_get(gpt, &find->label) == -1)
1025 if (gpt_size_get(gpt, &find->size) == -1)
1029 if (!gpt_uuid_is_nil(find->type))
1031 if (gpt_uuid_parse(optarg, find->type) != 0)
1035 gpt_warn(gpt, "Unknown find option `%c'", ch);
1042 gpt_change_ent(gpt_t gpt, const struct gpt_find *find,
1050 if (!find->all ^
1051 (find->block > 0 || find->entry > 0 || find->label != NULL
1052 || find->size > 0 || !gpt_uuid_is_nil(find->type)))
1062 if (find->entry > 0 && find->entry != m->map_index)
1064 if (find->block > 0 && find->block != m->map_start)
1066 if (find->size > 0 && find->size != m->map_size)
1072 if (find->label != NULL) {
1076 if (strcmp((char *)find->label, (char *)utfbuf) != 0)
1080 if (!gpt_uuid_is_nil(find->type) &&
1081 !gpt_uuid_equal(find->type, ent->ent_type))
1097 gpt_msg(gpt, "Partition %d %s", m->map_index, find->msg);
1103 gpt_change_hdr(gpt_t gpt, const struct gpt_find *find,
1124 gpt_msg(gpt, "Header %s", find->msg);