Changeset 0435fe41 in mainline for uspace/app/hdisk/func_gpt.c
- Timestamp:
- 2013-08-27T00:32:08Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 61ab4a9, 802898f
- Parents:
- 493b881
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hdisk/func_gpt.c
r493b881 r0435fe41 38 38 #include <str_error.h> 39 39 #include <sys/types.h> 40 #include <sys/typefmt.h> 40 41 41 42 #include "func_gpt.h" … … 110 111 size_t i = 0; 111 112 112 gpt_part_foreach (this->data.gpt, iter) {113 gpt_part_foreach (this->data.gpt, iter) { 113 114 i++; 114 115 … … 120 121 121 122 122 printf("%3u %10llu %10llu %10llu %3d %s\n", i-1, gpt_get_start_lba(iter), gpt_get_end_lba(iter), 123 gpt_get_end_lba(iter) - gpt_get_start_lba(iter), gpt_get_part_type(iter), 124 gpt_get_part_name(iter)); 123 printf("%3zu %10" PRIu64 " %10" PRIu64 " %10" PRIu64 " %3zu %s\n", 124 i-1, gpt_get_start_lba(iter), gpt_get_end_lba(iter), 125 gpt_get_end_lba(iter) - gpt_get_start_lba(iter), 126 gpt_get_part_type(iter), gpt_get_part_name(iter)); 125 127 126 128 } … … 195 197 gpt_set_end_lba(p, ea); 196 198 197 //printf("Set type : "); 198 //size_t idx = get_input_size_t(in); 199 //gpt_set_part_type(p, idx); 199 /* See global.c from libgpt for all partition types. */ 200 printf("Set type (1 for HelenOS System): "); 201 size_t idx = get_input_size_t(in); 202 gpt_set_part_type(p, idx); 200 203 201 204 gpt_set_random_uuid(p->part_type);
Note:
See TracChangeset
for help on using the changeset viewer.