Changeset b7fd2a0 in mainline for uspace/lib/label/src/dummy.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/label/src/dummy.c
r36f0738 rb7fd2a0 40 40 #include "dummy.h" 41 41 42 static int dummy_open(label_bd_t *, label_t **);43 static int dummy_create(label_bd_t *, label_t **);42 static errno_t dummy_open(label_bd_t *, label_t **); 43 static errno_t dummy_create(label_bd_t *, label_t **); 44 44 static void dummy_close(label_t *); 45 static int dummy_destroy(label_t *);46 static int dummy_get_info(label_t *, label_info_t *);45 static errno_t dummy_destroy(label_t *); 46 static errno_t dummy_get_info(label_t *, label_info_t *); 47 47 static label_part_t *dummy_part_first(label_t *); 48 48 static label_part_t *dummy_part_next(label_part_t *); 49 49 static void dummy_part_get_info(label_part_t *, label_part_info_t *); 50 static int dummy_part_create(label_t *, label_part_spec_t *, label_part_t **);51 static int dummy_part_destroy(label_part_t *);52 static int dummy_suggest_ptype(label_t *, label_pcnt_t, label_ptype_t *);50 static errno_t dummy_part_create(label_t *, label_part_spec_t *, label_part_t **); 51 static errno_t dummy_part_destroy(label_part_t *); 52 static errno_t dummy_suggest_ptype(label_t *, label_pcnt_t, label_ptype_t *); 53 53 54 54 label_ops_t dummy_label_ops = { … … 66 66 }; 67 67 68 static int dummy_open(label_bd_t *bd, label_t **rlabel)68 static errno_t dummy_open(label_bd_t *bd, label_t **rlabel) 69 69 { 70 70 label_t *label = NULL; … … 73 73 aoff64_t nblocks; 74 74 uint64_t ba_min, ba_max; 75 int rc;75 errno_t rc; 76 76 77 77 rc = bd->ops->get_bsize(bd->arg, &bsize); … … 128 128 } 129 129 130 static int dummy_create(label_bd_t *bd, label_t **rlabel)130 static errno_t dummy_create(label_bd_t *bd, label_t **rlabel) 131 131 { 132 132 return ENOTSUP; … … 148 148 } 149 149 150 static int dummy_destroy(label_t *label)151 { 152 return ENOTSUP; 153 } 154 155 static int dummy_get_info(label_t *label, label_info_t *linfo)150 static errno_t dummy_destroy(label_t *label) 151 { 152 return ENOTSUP; 153 } 154 155 static errno_t dummy_get_info(label_t *label, label_info_t *linfo) 156 156 { 157 157 memset(linfo, 0, sizeof(label_info_t)); … … 193 193 } 194 194 195 static int dummy_part_create(label_t *label, label_part_spec_t *pspec,195 static errno_t dummy_part_create(label_t *label, label_part_spec_t *pspec, 196 196 label_part_t **rpart) 197 197 { … … 199 199 } 200 200 201 static int dummy_part_destroy(label_part_t *part)202 { 203 return ENOTSUP; 204 } 205 206 static int dummy_suggest_ptype(label_t *label, label_pcnt_t pcnt,201 static errno_t dummy_part_destroy(label_part_t *part) 202 { 203 return ENOTSUP; 204 } 205 206 static errno_t dummy_suggest_ptype(label_t *label, label_pcnt_t pcnt, 207 207 label_ptype_t *ptype) 208 208 {
Note:
See TracChangeset
for help on using the changeset viewer.