Changes in uspace/srv/fs/locfs/locfs_ops.c [b7fd2a0:25a179e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/locfs/locfs_ops.c
rb7fd2a0 r25a179e 101 101 }; 102 102 103 static errno_t locfs_node_get_internal(fs_node_t **rfn, loc_object_type_t type,103 static int locfs_node_get_internal(fs_node_t **rfn, loc_object_type_t type, 104 104 service_id_t service_id) 105 105 { … … 125 125 } 126 126 127 static errno_t locfs_root_get(fs_node_t **rfn, service_id_t service_id)127 static int locfs_root_get(fs_node_t **rfn, service_id_t service_id) 128 128 { 129 129 return locfs_node_get_internal(rfn, LOC_OBJECT_NONE, 0); 130 130 } 131 131 132 static errno_t locfs_match(fs_node_t **rfn, fs_node_t *pfn, const char *component)132 static int locfs_match(fs_node_t **rfn, fs_node_t *pfn, const char *component) 133 133 { 134 134 locfs_node_t *node = (locfs_node_t *) pfn->data; 135 errno_t ret;135 int ret; 136 136 137 137 if (node->service_id == 0) { … … 208 208 } 209 209 210 static errno_t locfs_node_get(fs_node_t **rfn, service_id_t service_id, fs_index_t index)210 static int locfs_node_get(fs_node_t **rfn, service_id_t service_id, fs_index_t index) 211 211 { 212 212 return locfs_node_get_internal(rfn, loc_id_probe(index), index); 213 213 } 214 214 215 static errno_t locfs_node_open(fs_node_t *fn)215 static int locfs_node_open(fs_node_t *fn) 216 216 { 217 217 locfs_node_t *node = (locfs_node_t *) fn->data; … … 312 312 } 313 313 314 static errno_t locfs_node_put(fs_node_t *fn)314 static int locfs_node_put(fs_node_t *fn) 315 315 { 316 316 free(fn->data); … … 319 319 } 320 320 321 static errno_t locfs_create_node(fs_node_t **rfn, service_id_t service_id, int lflag)321 static int locfs_create_node(fs_node_t **rfn, service_id_t service_id, int lflag) 322 322 { 323 323 assert((lflag & L_FILE) ^ (lflag & L_DIRECTORY)); … … 327 327 } 328 328 329 static errno_t locfs_destroy_node(fs_node_t *fn)329 static int locfs_destroy_node(fs_node_t *fn) 330 330 { 331 331 return ENOTSUP; 332 332 } 333 333 334 static errno_t locfs_link_node(fs_node_t *pfn, fs_node_t *cfn, const char *nm)334 static int locfs_link_node(fs_node_t *pfn, fs_node_t *cfn, const char *nm) 335 335 { 336 336 return ENOTSUP; 337 337 } 338 338 339 static errno_t locfs_unlink_node(fs_node_t *pfn, fs_node_t *cfn, const char *nm)339 static int locfs_unlink_node(fs_node_t *pfn, fs_node_t *cfn, const char *nm) 340 340 { 341 341 return ENOTSUP; 342 342 } 343 343 344 static errno_t locfs_has_children(bool *has_children, fs_node_t *fn)344 static int locfs_has_children(bool *has_children, fs_node_t *fn) 345 345 { 346 346 locfs_node_t *node = (locfs_node_t *) fn->data; … … 455 455 } 456 456 457 static errno_t locfs_fsprobe(service_id_t service_id, vfs_fs_probe_info_t *info)457 static int locfs_fsprobe(service_id_t service_id, vfs_fs_probe_info_t *info) 458 458 { 459 459 return ENOTSUP; 460 460 } 461 461 462 static errno_t locfs_mounted(service_id_t service_id, const char *opts,462 static int locfs_mounted(service_id_t service_id, const char *opts, 463 463 fs_index_t *index, aoff64_t *size) 464 464 { … … 468 468 } 469 469 470 static errno_t locfs_unmounted(service_id_t service_id)470 static int locfs_unmounted(service_id_t service_id) 471 471 { 472 472 return ENOTSUP; 473 473 } 474 474 475 static errno_t475 static int 476 476 locfs_read(service_id_t service_id, fs_index_t index, aoff64_t pos, 477 477 size_t *rbytes) … … 590 590 591 591 /* Wait for reply from the driver. */ 592 errno_t rc;592 int rc; 593 593 async_wait_for(msg, &rc); 594 594 595 595 /* Do not propagate EHANGUP back to VFS. */ 596 if (( errno_t) rc == EHANGUP)596 if ((int) rc == EHANGUP) 597 597 rc = ENOTSUP; 598 598 … … 604 604 } 605 605 606 static errno_t606 static int 607 607 locfs_write(service_id_t service_id, fs_index_t index, aoff64_t pos, 608 608 size_t *wbytes, aoff64_t *nsize) … … 654 654 655 655 /* Wait for reply from the driver. */ 656 errno_t rc;656 int rc; 657 657 async_wait_for(msg, &rc); 658 658 659 659 /* Do not propagate EHANGUP back to VFS. */ 660 if (( errno_t) rc == EHANGUP)660 if ((int) rc == EHANGUP) 661 661 rc = ENOTSUP; 662 662 … … 669 669 } 670 670 671 static errno_t671 static int 672 672 locfs_truncate(service_id_t service_id, fs_index_t index, aoff64_t size) 673 673 { … … 675 675 } 676 676 677 static errno_t locfs_close(service_id_t service_id, fs_index_t index)677 static int locfs_close(service_id_t service_id, fs_index_t index) 678 678 { 679 679 if (index == 0) … … 715 715 } 716 716 717 static errno_t locfs_sync(service_id_t service_id, fs_index_t index)717 static int locfs_sync(service_id_t service_id, fs_index_t index) 718 718 { 719 719 if (index == 0) … … 752 752 753 753 /* Wait for reply from the driver */ 754 errno_t rc;754 int rc; 755 755 async_wait_for(msg, &rc); 756 756 … … 761 761 } 762 762 763 static errno_t locfs_destroy(service_id_t service_id, fs_index_t index)763 static int locfs_destroy(service_id_t service_id, fs_index_t index) 764 764 { 765 765 return ENOTSUP;
Note:
See TracChangeset
for help on using the changeset viewer.