Ignore:
Timestamp:
2015-07-29T20:35:40Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
100b1d1
Parents:
c43db5f
Message:

Most of logical partition support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fdisk/include/types/fdisk.h

    rc43db5f rc02d098  
    106106        /** Service ID */
    107107        service_id_t sid;
    108         /** Partitions sorted by index */
    109         list_t parts_idx; /* of fdisk_part_t */
    110         /** Partitions sorted by block address */
    111         list_t parts_ba;
     108        /** All partitions */
     109        list_t parts;
     110        /** Primary partitions sorted by index */
     111        list_t pri_idx; /* of fdisk_part_t */
     112        /** Primary partitions sorted by block address */
     113        list_t pri_ba;
     114        /** Logical partitions sorted by block address */
     115        list_t log_ba;
     116        /** Extended partition or NULL */
     117        struct fdisk_part *ext_part;
    112118        /** Disk info */
    113119        vbd_disk_info_t dinfo;
     120        /** Alignment in blocks */
     121        uint64_t align;
    114122} fdisk_dev_t;
    115123
     
    124132
    125133/** Partition */
    126 typedef struct {
     134typedef struct fdisk_part {
    127135        /** Containing device */
    128136        fdisk_dev_t *dev;
    129         /** Link to fdisk_dev_t.parts_idx */
    130         link_t ldev_idx;
    131         /** Link to fdisk_dev_t.parts_ba */
    132         link_t ldev_ba;
     137        /** Link to fdisk_dev_t.parts */
     138        link_t lparts;
     139        /** Link to fdisk_dev_t.pri_idx */
     140        link_t lpri_idx;
     141        /** Link to fdisk_dev_t.pri_ba */
     142        link_t lpri_ba;
     143        /** Link to fdisk_dev_t.log_ba */
     144        link_t llog_ba;
    133145        /** Capacity */
    134146        fdisk_cap_t capacity;
Note: See TracChangeset for help on using the changeset viewer.