Changeset 984a9ba in mainline for uspace/srv/fs/cdfs/cdfs_ops.c
- Timestamp:
- 2018-07-05T09:34:09Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63d46341
- Parents:
- 76f566d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/cdfs/cdfs_ops.c
r76f566d r984a9ba 1273 1273 } 1274 1274 1275 cap_call_handle_t chandle;1275 ipc_call_t call; 1276 1276 size_t len; 1277 if (!async_data_read_receive(&c handle, &len)) {1278 async_answer_0( chandle, EINVAL);1277 if (!async_data_read_receive(&call, &len)) { 1278 async_answer_0(&call, EINVAL); 1279 1279 return EINVAL; 1280 1280 } … … 1283 1283 if (pos >= node->size) { 1284 1284 *rbytes = 0; 1285 async_data_read_finalize( chandle, NULL, 0);1285 async_data_read_finalize(&call, NULL, 0); 1286 1286 } else { 1287 1287 cdfs_lba_t lba = pos / BLOCK_SIZE; … … 1295 1295 BLOCK_FLAGS_NONE); 1296 1296 if (rc != EOK) { 1297 async_answer_0( chandle, rc);1297 async_answer_0(&call, rc); 1298 1298 return rc; 1299 1299 } 1300 1300 1301 async_data_read_finalize( chandle, block->data + offset,1301 async_data_read_finalize(&call, block->data + offset, 1302 1302 *rbytes); 1303 1303 rc = block_put(block); … … 1308 1308 link_t *link = list_nth(&node->cs_list, pos); 1309 1309 if (link == NULL) { 1310 async_answer_0( chandle, ENOENT);1310 async_answer_0(&call, ENOENT); 1311 1311 return ENOENT; 1312 1312 } … … 1316 1316 1317 1317 *rbytes = 1; 1318 async_data_read_finalize( chandle, dentry->name,1318 async_data_read_finalize(&call, dentry->name, 1319 1319 str_size(dentry->name) + 1); 1320 1320 }
Note:
See TracChangeset
for help on using the changeset viewer.