Changeset a46e56b in mainline for uspace/srv/fs/cdfs/cdfs_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/cdfs/cdfs_ops.c
r3e242d2 ra46e56b 1271 1271 } 1272 1272 1273 cap_call_handle_t c allid;1273 cap_call_handle_t chandle; 1274 1274 size_t len; 1275 if (!async_data_read_receive(&c allid, &len)) {1276 async_answer_0(c allid, EINVAL);1275 if (!async_data_read_receive(&chandle, &len)) { 1276 async_answer_0(chandle, EINVAL); 1277 1277 return EINVAL; 1278 1278 } … … 1281 1281 if (pos >= node->size) { 1282 1282 *rbytes = 0; 1283 async_data_read_finalize(c allid, NULL, 0);1283 async_data_read_finalize(chandle, NULL, 0); 1284 1284 } else { 1285 1285 cdfs_lba_t lba = pos / BLOCK_SIZE; … … 1293 1293 BLOCK_FLAGS_NONE); 1294 1294 if (rc != EOK) { 1295 async_answer_0(c allid, rc);1295 async_answer_0(chandle, rc); 1296 1296 return rc; 1297 1297 } 1298 1298 1299 async_data_read_finalize(c allid, block->data + offset,1299 async_data_read_finalize(chandle, block->data + offset, 1300 1300 *rbytes); 1301 1301 rc = block_put(block); … … 1306 1306 link_t *link = list_nth(&node->cs_list, pos); 1307 1307 if (link == NULL) { 1308 async_answer_0(c allid, ENOENT);1308 async_answer_0(chandle, ENOENT); 1309 1309 return ENOENT; 1310 1310 } … … 1314 1314 1315 1315 *rbytes = 1; 1316 async_data_read_finalize(c allid, dentry->name,1316 async_data_read_finalize(chandle, dentry->name, 1317 1317 str_size(dentry->name) + 1); 1318 1318 }
Note:
See TracChangeset
for help on using the changeset viewer.