Changeset 603c1d1f in mainline for uspace/lib/label/include


Ignore:
Timestamp:
2015-07-05T18:53:00Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf7ddde
Parents:
99c23405
Message:

Persistent partition table creation and destruction.

Location:
uspace/lib/label/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/label/include/std/gpt.h

    r99c23405 r603c1d1f  
    3838#include <sys/types.h>
    3939
    40 /** Block address of GPT header. */
    41 #define GPT_HDR_BA      1
     40enum {
     41        /** Block address of primary GPT header. */
     42        gpt_hdr_ba = 1,
     43
     44        /** Minimum size of partition table in bytes, required by std. */
     45        gpt_ptable_min_size = 16384,
     46
     47        /** GPT revision */
     48        gpt_revision = 0x00010000
     49};
    4250
    4351/** GPT header */
  • uspace/lib/label/include/types/liblabel.h

    r99c23405 r603c1d1f  
    111111
    112112typedef struct {
     113        uint64_t hdr_ba[2];
    113114        uint64_t ptable_ba[2];
    114115        size_t esize;
     
    125126        label_type_t ltype;
    126127        /** Block device service ID */
    127         service_id_t svcid;
     128        service_id_t svc_id;
    128129        /** Partitions */
    129130        list_t parts; /* of label_part_t */
Note: See TracChangeset for help on using the changeset viewer.