Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9624c35 in mainline


Ignore:
Timestamp:
2015-10-31T21:09:34Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
89204a23
Parents:
2dab624
Message:

Add GPT partitions only once.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/label/src/gpt.c

    r2dab624 r9624c35  
    280280                }
    281281
    282                 for (entry = 0; entry < num_entries; entry++) {
    283                         eptr = (gpt_entry_t *)(etable[j] + entry * esize);
    284                         rc = gpt_pte_to_part(label, eptr, entry + 1);
    285                         if (rc != EOK)
    286                                 goto error;
    287                 }
     282        }
     283
     284        for (entry = 0; entry < num_entries; entry++) {
     285                eptr = (gpt_entry_t *)(etable[0] + entry * esize);
     286                rc = gpt_pte_to_part(label, eptr, entry + 1);
     287                if (rc != EOK)
     288                        goto error;
    288289        }
    289290
Note: See TracChangeset for help on using the changeset viewer.