Changeset a46e56b in mainline for uspace/srv/fs/mfs/mfs_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/mfs/mfs_ops.c
r3e242d2 ra46e56b 837 837 struct mfs_ino_info *ino_i; 838 838 size_t len, bytes = 0; 839 cap_call_handle_t c allid;839 cap_call_handle_t chandle; 840 840 841 841 mnode = fn->data; 842 842 ino_i = mnode->ino_i; 843 843 844 if (!async_data_read_receive(&c allid, &len)) {844 if (!async_data_read_receive(&chandle, &len)) { 845 845 rc = EINVAL; 846 846 goto out_error; … … 869 869 870 870 rc = mfs_node_put(fn); 871 async_answer_0(c allid, rc != EOK ? rc : ENOENT);871 async_answer_0(chandle, rc != EOK ? rc : ENOENT); 872 872 return rc; 873 873 found: 874 async_data_read_finalize(c allid, d_info.d_name,874 async_data_read_finalize(chandle, d_info.d_name, 875 875 str_size(d_info.d_name) + 1); 876 876 bytes = ((pos - spos) + 1); … … 881 881 /* Trying to read beyond the end of file */ 882 882 bytes = 0; 883 (void) async_data_read_finalize(c allid, NULL, 0);883 (void) async_data_read_finalize(chandle, NULL, 0); 884 884 goto out_success; 885 885 } … … 903 903 } 904 904 memset(buf, 0, sizeof(sbi->block_size)); 905 async_data_read_finalize(c allid,905 async_data_read_finalize(chandle, 906 906 buf + pos % sbi->block_size, bytes); 907 907 free(buf); … … 913 913 goto out_error; 914 914 915 async_data_read_finalize(c allid, b->data +915 async_data_read_finalize(chandle, b->data + 916 916 pos % sbi->block_size, bytes); 917 917 … … 928 928 out_error: 929 929 tmp = mfs_node_put(fn); 930 async_answer_0(c allid, tmp != EOK ? tmp : rc);930 async_answer_0(chandle, tmp != EOK ? tmp : rc); 931 931 return tmp != EOK ? tmp : rc; 932 932 } … … 946 946 return ENOENT; 947 947 948 cap_call_handle_t c allid;948 cap_call_handle_t chandle; 949 949 size_t len; 950 950 951 if (!async_data_write_receive(&c allid, &len)) {951 if (!async_data_write_receive(&chandle, &len)) { 952 952 r = EINVAL; 953 953 goto out_err; … … 992 992 memset(b->data, 0, sbi->block_size); 993 993 994 async_data_write_finalize(c allid, b->data + (pos % bs), bytes);994 async_data_write_finalize(chandle, b->data + (pos % bs), bytes); 995 995 b->dirty = true; 996 996 … … 1012 1012 out_err: 1013 1013 mfs_node_put(fn); 1014 async_answer_0(c allid, r);1014 async_answer_0(chandle, r); 1015 1015 return r; 1016 1016 }
Note:
See TracChangeset
for help on using the changeset viewer.