Changeset a46e56b in mainline for uspace/srv/fs/locfs/locfs_ops.c
- Timestamp:
- 2018-03-22T06:49:35Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77f0a1d
- Parents:
- 3e242d2
- git-author:
- Jakub Jermar <jakub@…> (2018-03-21 23:29:06)
- git-committer:
- Jakub Jermar <jakub@…> (2018-03-22 06:49:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/locfs/locfs_ops.c
r3e242d2 ra46e56b 478 478 { 479 479 if (index == 0) { 480 cap_call_handle_t c allid;480 cap_call_handle_t chandle; 481 481 size_t size; 482 if (!async_data_read_receive(&c allid, &size)) {483 async_answer_0(c allid, EINVAL);482 if (!async_data_read_receive(&chandle, &size)) { 483 async_answer_0(chandle, EINVAL); 484 484 return EINVAL; 485 485 } … … 500 500 501 501 if (pos < count) { 502 async_data_read_finalize(c allid, desc[pos].name, str_size(desc[pos].name) + 1);502 async_data_read_finalize(chandle, desc[pos].name, str_size(desc[pos].name) + 1); 503 503 free(desc); 504 504 *rbytes = 1; … … 515 515 516 516 if (pos < count) { 517 async_data_read_finalize(c allid, desc[pos].name, str_size(desc[pos].name) + 1);517 async_data_read_finalize(chandle, desc[pos].name, str_size(desc[pos].name) + 1); 518 518 free(desc); 519 519 *rbytes = 1; … … 524 524 } 525 525 526 async_answer_0(c allid, ENOENT);526 async_answer_0(chandle, ENOENT); 527 527 return ENOENT; 528 528 } … … 532 532 if (type == LOC_OBJECT_NAMESPACE) { 533 533 /* Namespace directory */ 534 cap_call_handle_t c allid;534 cap_call_handle_t chandle; 535 535 size_t size; 536 if (!async_data_read_receive(&c allid, &size)) {537 async_answer_0(c allid, EINVAL);536 if (!async_data_read_receive(&chandle, &size)) { 537 async_answer_0(chandle, EINVAL); 538 538 return EINVAL; 539 539 } … … 543 543 544 544 if (pos < count) { 545 async_data_read_finalize(c allid, desc[pos].name, str_size(desc[pos].name) + 1);545 async_data_read_finalize(chandle, desc[pos].name, str_size(desc[pos].name) + 1); 546 546 free(desc); 547 547 *rbytes = 1; … … 550 550 551 551 free(desc); 552 async_answer_0(c allid, ENOENT);552 async_answer_0(chandle, ENOENT); 553 553 return ENOENT; 554 554 } … … 568 568 assert(dev->sess); 569 569 570 cap_call_handle_t c allid;571 if (!async_data_read_receive(&c allid, NULL)) {570 cap_call_handle_t chandle; 571 if (!async_data_read_receive(&chandle, NULL)) { 572 572 fibril_mutex_unlock(&services_mutex); 573 async_answer_0(c allid, EINVAL);573 async_answer_0(chandle, EINVAL); 574 574 return EINVAL; 575 575 } … … 583 583 584 584 /* Forward the IPC_M_DATA_READ request to the driver */ 585 async_forward_fast(c allid, exch, 0, 0, 0, IPC_FF_ROUTE_FROM_ME);585 async_forward_fast(chandle, exch, 0, 0, 0, IPC_FF_ROUTE_FROM_ME); 586 586 587 587 async_exchange_end(exch); … … 632 632 assert(dev->sess); 633 633 634 cap_call_handle_t c allid;635 if (!async_data_write_receive(&c allid, NULL)) {634 cap_call_handle_t chandle; 635 if (!async_data_write_receive(&chandle, NULL)) { 636 636 fibril_mutex_unlock(&services_mutex); 637 async_answer_0(c allid, EINVAL);637 async_answer_0(chandle, EINVAL); 638 638 return EINVAL; 639 639 } … … 647 647 648 648 /* Forward the IPC_M_DATA_WRITE request to the driver */ 649 async_forward_fast(c allid, exch, 0, 0, 0, IPC_FF_ROUTE_FROM_ME);649 async_forward_fast(chandle, exch, 0, 0, 0, IPC_FF_ROUTE_FROM_ME); 650 650 651 651 async_exchange_end(exch);
Note:
See TracChangeset
for help on using the changeset viewer.