Changeset 1626cd4 in mainline for uspace/lib/label/include/types/liblabel.h
- Timestamp:
- 2015-07-02T19:01:37Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6a0d4ce2
- Parents:
- 3faa03d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/label/include/types/liblabel.h
r3faa03d r1626cd4 43 43 44 44 typedef struct label label_t; 45 typedef struct label_info label_info_t; 45 46 typedef struct label_part label_part_t; 46 47 typedef struct label_part_info label_part_info_t; … … 53 54 void (*close)(label_t *); 54 55 int (*destroy)(label_t *); 56 int (*get_info)(label_t *, label_info_t *); 55 57 label_part_t *(*part_first)(label_t *); 56 58 label_part_t *(*part_next)(label_part_t *); … … 60 62 } label_ops_t; 61 63 62 typedef struct{64 struct label_info { 63 65 /** Disk contents */ 64 66 label_disk_cnt_t dcnt; 65 67 /** Label type */ 66 68 label_type_t ltype; 67 } label_info_t; 69 /** First block that can be allocated */ 70 aoff64_t ablock0; 71 /** Number of blocks that can be allocated */ 72 aoff64_t anblocks; 73 }; 68 74 69 75 struct label_part_info { 76 /** Partition index */ 77 int index; 70 78 /** Address of first block */ 71 79 aoff64_t block0; … … 80 88 /** Link to label_t.parts */ 81 89 link_t llabel; 90 /** Index */ 91 int index; 92 /** First block */ 82 93 aoff64_t block0; 94 /** Number of blocks */ 83 95 aoff64_t nblocks; 84 96 }; … … 96 108 /** Partitions */ 97 109 list_t parts; /* of label_part_t */ 110 /** First block that can be allocated */ 111 aoff64_t ablock0; 112 /** Number of blocks that can be allocated */ 113 aoff64_t anblocks; 98 114 }; 99 115
Note:
See TracChangeset
for help on using the changeset viewer.