Ignore:
Timestamp:
2015-06-29T18:47:07Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3faa03d
Parents:
28ed0d9
Message:

Implement partition block device interface in VBD based on data from liblabel.

File:
1 edited

Legend:

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

    r28ed0d9 r78d50bd  
    3939#include <adt/list.h>
    4040#include <types/label.h>
     41#include <sys/types.h>
    4142#include <vol.h>
    4243
     
    4849} label_info_t;
    4950
     51typedef struct {
     52        /** Address of first block */
     53        aoff64_t block0;
     54        /** Number of blocks */
     55        aoff64_t nblocks;
     56} label_part_info_t;
     57
    5058/** Partition */
    5159typedef struct {
    5260        /** Containing label */
    5361        struct label *label;
    54         /** Link to fdisk_dev_t.parts */
    55         link_t ldev;
    56         /** Capacity */
    57 //      fdisk_cap_t capacity;
    58         /** File system type */
    59 //      fdisk_fstype_t fstype;
     62        /** Link to label_t.parts */
     63        link_t llabel;
    6064} label_part_t;
    6165
    6266/** Specification of new partition */
    6367typedef struct {
    64         /** Desired capacity */
    65 //      fdisk_cap_t capacity;
    66         /** File system type */
    67 //      fdisk_fstype_t fstype;
    6868} label_part_spec_t;
    6969
    7070/** Label instance */
    7171typedef struct label {
     72        /** Partitions */
     73        list_t parts; /* of label_part_t */
    7274} label_t;
    7375
Note: See TracChangeset for help on using the changeset viewer.