Changes in uspace/lib/label/src/dummy.c [0ecfc62:deacc58d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/label/src/dummy.c
r0ecfc62 rdeacc58d 34 34 */ 35 35 36 #include <block.h>37 36 #include <errno.h> 38 37 #include <mem.h> … … 41 40 #include "dummy.h" 42 41 43 static int dummy_open( service_id_t, label_t **);44 static int dummy_create( service_id_t, label_t **);42 static int dummy_open(label_bd_t *, label_t **); 43 static int dummy_create(label_bd_t *, label_t **); 45 44 static void dummy_close(label_t *); 46 45 static int dummy_destroy(label_t *); … … 67 66 }; 68 67 69 static int dummy_open( service_id_t sid, label_t **rlabel)68 static int dummy_open(label_bd_t *bd, label_t **rlabel) 70 69 { 71 70 label_t *label = NULL; … … 76 75 int rc; 77 76 78 rc = b lock_get_bsize(sid, &bsize);77 rc = bd->ops->get_bsize(bd->arg, &bsize); 79 78 if (rc != EOK) { 80 79 rc = EIO; … … 82 81 } 83 82 84 rc = b lock_get_nblocks(sid, &nblocks);83 rc = bd->ops->get_nblocks(bd->arg, &nblocks); 85 84 if (rc != EOK) { 86 85 rc = EIO; … … 101 100 label->ops = &dummy_label_ops; 102 101 label->ltype = lt_none; 103 label-> svc_id = sid;102 label->bd = *bd; 104 103 label->ablock0 = ba_min; 105 104 label->anblocks = ba_max - ba_min + 1; … … 129 128 } 130 129 131 static int dummy_create( service_id_t sid, label_t **rlabel)130 static int dummy_create(label_bd_t *bd, label_t **rlabel) 132 131 { 133 132 return ENOTSUP;
Note:
See TracChangeset
for help on using the changeset viewer.