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

Changeset 78d50bd in mainline for uspace/srv/bd/vbd/types/vbd.h


Ignore:
Timestamp:
2015-06-29T18:47:07Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
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/srv/bd/vbd/types/vbd.h

    r28ed0d9 r78d50bd  
    3939
    4040#include <adt/list.h>
     41#include <bd_srv.h>
    4142#include <label.h>
    4243#include <loc.h>
    4344#include <types/label.h>
     45
     46typedef sysarg_t vbds_part_id_t;
    4447
    4548/** Disk info */
     
    5760        /** Link to vbds_disk_t.parts */
    5861        link_t ldisk;
     62        /** Link to vbds_parts */
     63        link_t lparts;
     64        /** Partition ID */
     65        vbds_part_id_t id;
    5966        /** Label partition */
    6067        label_part_t *lpart;
     68        /** Block device service */
     69        bd_srvs_t bds;
     70        /** Number of times the device is open */
     71        int open_cnt;
     72        /** Address of first block */
     73        aoff64_t block0;
     74        /** Number of blocks */
     75        aoff64_t nblocks;
    6176} vbds_part_t;
    6277
     
    6782        /** Service ID */
    6883        service_id_t svc_id;
     84        /** Disk service name */
     85        char *svc_name;
    6986        /** Label */
    7087        label_t *label;
    7188        /** Partitions */
    7289        list_t parts; /* of vbds_part_t */
     90        /** Block size */
     91        size_t block_size;
    7392} vbds_disk_t;
    7493
     
    7695} vbds_part_info_t;
    7796
    78 typedef sysarg_t vbds_part_id_t;
    79 
    8097#endif
    8198
Note: See TracChangeset for help on using the changeset viewer.