Changeset 99c23405 in mainline for uspace/lib/label/include


Ignore:
Timestamp:
2015-07-04T15:18:06Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
603c1d1f
Parents:
6bc542b
Message:

Persistent partition table modification when creating or deleting partition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/label/include/types/liblabel.h

    r6bc542b r99c23405  
    9494        /** Number of blocks */
    9595        aoff64_t nblocks;
     96        /** Partition type */
     97        uint64_t ptype;
    9698};
    9799
     
    108110};
    109111
     112typedef struct {
     113        uint64_t ptable_ba[2];
     114        size_t esize;
     115} label_gpt_t;
     116
     117typedef struct {
     118} label_mbr_t;
     119
    110120/** Label instance */
    111121struct label {
     
    114124        /** Label type */
    115125        label_type_t ltype;
     126        /** Block device service ID */
     127        service_id_t svcid;
    116128        /** Partitions */
    117129        list_t parts; /* of label_part_t */
     
    120132        /** Number of blocks that can be allocated */
    121133        aoff64_t anblocks;
     134        /** Number of primary partition entries */
     135        int pri_entries;
     136        /** Block size */
     137        size_t block_size;
     138        union {
     139                label_gpt_t gpt;
     140                label_mbr_t mbr;
     141        } lt;
    122142};
    123143
Note: See TracChangeset for help on using the changeset viewer.