Changeset c3cbbb2 in mainline for uspace/app/hdisk/func_gpt.c
- Timestamp:
- 2013-07-26T21:48:22Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 903a897, dc76f4a
- Parents:
- 9f4650c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hdisk/func_gpt.c
r9f4650c rc3cbbb2 44 44 static int set_gpt_partition(tinput_t *, gpt_part_t *); 45 45 46 47 46 int construct_gpt_label(label_t *this) 48 47 { … … 50 49 this->alignment = 1; 51 50 52 this->add_part = add_gpt_part; 53 this->delete_part = delete_gpt_part; 54 this->new_label = new_gpt_label; 55 this->print_parts = print_gpt_parts; 56 this->read_parts = read_gpt_parts; 57 this->write_parts = write_gpt_parts; 58 this->extra_funcs = extra_gpt_funcs; 51 this->add_part = add_gpt_part; 52 this->delete_part = delete_gpt_part; 53 this->destroy_label = destroy_gpt_label; 54 this->new_label = new_gpt_label; 55 this->print_parts = print_gpt_parts; 56 this->read_parts = read_gpt_parts; 57 this->write_parts = write_gpt_parts; 58 this->extra_funcs = extra_gpt_funcs; 59 59 60 60 return this->new_label(this); … … 110 110 gpt_part_foreach(this->data.gpt, iter) { 111 111 i++; 112 //FIXMEE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!112 113 113 if (gpt_get_part_type(iter) == GPT_PTE_UNUSED) 114 114 continue; … … 122 122 gpt_get_end_lba(iter) - gpt_get_start_lba(iter), gpt_get_part_type(iter), 123 123 gpt_get_part_name(iter)); 124 124 125 } 125 126 … … 192 193 gpt_set_end_lba(p, ea); 193 194 195 //printf("Set type : "); 196 //size_t idx = get_input_size_t(in); 197 //gpt_set_part_type(p, idx); 198 199 gpt_set_random_uuid(p->part_type); 200 gpt_set_random_uuid(p->part_id); 194 201 195 202 char *name; … … 201 208 } 202 209 203 printf("name: %s, len: %d\n", name, str_size(name));204 210 gpt_set_part_name(p, name, str_size(name)); 205 211
Note:
See TracChangeset
for help on using the changeset viewer.