Changes in uspace/srv/volsrv/part.c [b7fd2a0:dd8ab1c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/volsrv/part.c
rb7fd2a0 rdd8ab1c 50 50 #include "types/part.h" 51 51 52 static errno_t vol_part_add_locked(service_id_t);52 static int vol_part_add_locked(service_id_t); 53 53 static LIST_INITIALIZE(vol_parts); /* of vol_part_t */ 54 54 static FIBRIL_MUTEX_INITIALIZE(vol_parts_lock); … … 69 69 70 70 /** Check for new partitions */ 71 static errno_t vol_part_check_new(void)71 static int vol_part_check_new(void) 72 72 { 73 73 bool already_known; … … 75 75 service_id_t *svcs; 76 76 size_t count, i; 77 errno_t rc;77 int rc; 78 78 79 79 fibril_mutex_lock(&vol_parts_lock); … … 144 144 } 145 145 146 static errno_t vol_part_probe(vol_part_t *part)146 static int vol_part_probe(vol_part_t *part) 147 147 { 148 148 bool empty; … … 150 150 struct fsname_type *fst; 151 151 char *label; 152 errno_t rc;152 int rc; 153 153 154 154 log_msg(LOG_DEFAULT, LVL_NOTE, "Probe partition %s", part->svc_name); … … 204 204 } 205 205 206 static errno_t vol_part_add_locked(service_id_t sid)206 static int vol_part_add_locked(service_id_t sid) 207 207 { 208 208 vol_part_t *part; 209 errno_t rc;209 int rc; 210 210 211 211 assert(fibril_mutex_is_locked(&vol_parts_lock)); … … 244 244 } 245 245 246 errno_t vol_part_add(service_id_t sid)247 { 248 errno_t rc;246 int vol_part_add(service_id_t sid) 247 { 248 int rc; 249 249 250 250 fibril_mutex_lock(&vol_parts_lock); … … 260 260 } 261 261 262 errno_t vol_part_init(void)263 { 264 return EOK; 265 } 266 267 errno_t vol_part_discovery_start(void)268 { 269 errno_t rc;262 int vol_part_init(void) 263 { 264 return EOK; 265 } 266 267 int vol_part_discovery_start(void) 268 { 269 int rc; 270 270 271 271 rc = loc_register_cat_change_cb(vol_part_cat_change_cb); … … 280 280 281 281 /** Get list of partitions as array of service IDs. */ 282 errno_t vol_part_get_ids(service_id_t *id_buf, size_t buf_size, size_t *act_size)282 int vol_part_get_ids(service_id_t *id_buf, size_t buf_size, size_t *act_size) 283 283 { 284 284 size_t act_cnt; … … 308 308 } 309 309 310 errno_t vol_part_find_by_id(service_id_t sid, vol_part_t **rpart)310 int vol_part_find_by_id(service_id_t sid, vol_part_t **rpart) 311 311 { 312 312 list_foreach(vol_parts, lparts, vol_part_t, part) { … … 321 321 } 322 322 323 errno_t vol_part_empty_part(vol_part_t *part)324 { 325 errno_t rc;323 int vol_part_empty_part(vol_part_t *part) 324 { 325 int rc; 326 326 327 327 log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_empty_part()"); … … 338 338 } 339 339 340 errno_t vol_part_mkfs_part(vol_part_t *part, vol_fstype_t fstype,340 int vol_part_mkfs_part(vol_part_t *part, vol_fstype_t fstype, 341 341 const char *label) 342 342 { 343 errno_t rc;343 int rc; 344 344 345 345 log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_mkfs_part()"); … … 370 370 } 371 371 372 errno_t vol_part_get_info(vol_part_t *part, vol_part_info_t *pinfo)372 int vol_part_get_info(vol_part_t *part, vol_part_info_t *pinfo) 373 373 { 374 374 pinfo->pcnt = part->pcnt;
Note:
See TracChangeset
for help on using the changeset viewer.