| 389 | } |
| 390 | |
| 391 | static 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 | |
| 404 | list_part_t *add_partition_gpt_cli(const disk_t *disk_car, list_part_t *list_part, char **current_cmd) |
| 405 | { |
nothing calls this directly
no test coverage detected