Changeset 1c8bfe8 in mainline for uspace/lib/mbr/libmbr.c
- Timestamp:
- 2013-06-25T00:27:47Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6317b33, 9256d093
- Parents:
- 6e8e4e19 (diff), cb328ab (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/mbr/libmbr.c
r6e8e4e19 r1c8bfe8 94 94 */ 95 95 int mbr_read_mbr(mbr_label_t *label, service_id_t dev_handle) 96 { 97 if (label == NULL) 98 return EINVAL; 99 96 { 100 97 int rc; 101 98 … … 195 192 196 193 rc_ext = decode_part(&(label->mbr->raw_data.pte[i]), p, 0); 197 printf("p: %d %u %u\n", rc_ext, p->start_addr, p->length);198 194 mbr_set_flag(p, ST_LOGIC, false); 199 195 rc = mbr_add_partition(label, p); … … 207 203 if (rc_ext) { 208 204 ext = p; 209 printf("ext: %u %u\n", p->start_addr, p->length);210 205 label->parts->l_extended = &p->link; 211 206 } … … 231 226 int mbr_write_partitions(mbr_label_t *label, service_id_t dev_handle) 232 227 { 228 if (label->parts == NULL) 229 return EOK; 230 231 if (label->mbr == NULL) 232 label->mbr = mbr_alloc_mbr(); 233 233 234 int i = 0; 234 235 int rc; … … 248 249 for (i = 0; i < N_PRIMARY; i++) { 249 250 p = list_get_instance(l, mbr_part_t, link); 250 printf("status: %hu\n", p->status);251 251 encode_part(p, &(label->mbr->raw_data.pte[i]), 0, false); 252 252 l = l->next;
Note:
See TracChangeset
for help on using the changeset viewer.