Changeset 1626cd4 in mainline for uspace/srv/bd/vbd/types/vbd.h


Ignore:
Timestamp:
2015-07-02T19:01:37Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6a0d4ce2
Parents:
3faa03d
Message:

Propagate label and partition block ranges and other info up through the stack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/vbd/types/vbd.h

    r3faa03d r1626cd4  
    4242#include <label.h>
    4343#include <loc.h>
     44#include <sys/types.h>
    4445#include <types/label.h>
    4546
     
    4849/** Disk info */
    4950typedef struct {
    50         /** Label */
    51         label_t *label;
    5251        /** Label type */
    5352        label_type_t ltype;
     53        /** First block that can be allocated */
     54        aoff64_t ablock0;
     55        /** Number of blocks that can be allocated */
     56        aoff64_t anblocks;
     57        /** Block size */
     58        size_t block_size;
    5459} vbds_disk_info_t;
    5560
     
    9297} vbds_disk_t;
    9398
     99/** Partition info */
    94100typedef struct {
     101        /** Partition index */
     102        int index;
     103        /** First block */
     104        aoff64_t block0;
     105        /** Number of blocks */
     106        aoff64_t nblocks;
    95107} vbds_part_info_t;
    96108
Note: See TracChangeset for help on using the changeset viewer.