MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / init_part_order_gpt

Function init_part_order_gpt

src/partgpt.c:391–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391static list_part_t *init_part_order_gpt(const disk_t *disk_car, list_part_t *list_part)
392{
393 list_part_t *element;
394 unsigned int order=1;
395 for(element=list_part;element!=NULL;element=element->next)
396 {
397 if(element->part->part_size>0 &&
398 guid_cmp(element->part->part_type_gpt, GPT_ENT_TYPE_UNUSED)!=0)
399 element->part->order=order++;
400 }
401 return list_part;
402}
403
404list_part_t *add_partition_gpt_cli(const disk_t *disk_car, list_part_t *list_part, char **current_cmd)
405{

Callers

nothing calls this directly

Calls 1

guid_cmpFunction · 0.85

Tested by

no test coverage detected