Changeset 1b20da0 in mainline for uspace/srv/fs/tmpfs/tmpfs_ops.c
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_ops.c
rdf6ded8 r1b20da0 76 76 static errno_t tmpfs_root_get(fs_node_t **rfn, service_id_t service_id) 77 77 { 78 return tmpfs_node_get(rfn, service_id, TMPFS_SOME_ROOT); 78 return tmpfs_node_get(rfn, service_id, TMPFS_SOME_ROOT); 79 79 } 80 80 … … 138 138 hash_table_t nodes; 139 139 140 /* 141 * Implementation of hash table interface for the nodes hash table. 140 /* 141 * Implementation of hash table interface for the nodes hash table. 142 142 */ 143 143 … … 248 248 249 249 static void tmpfs_instance_done(service_id_t service_id) 250 { 250 { 251 251 hash_table_apply(&nodes, rm_service_id_nodes, &service_id); 252 252 } … … 283 283 *rfn = NULL; 284 284 } 285 return EOK; 285 return EOK; 286 286 } 287 287 … … 324 324 nodep->index = tmpfs_next_index++; 325 325 nodep->service_id = service_id; 326 if (lflag & L_DIRECTORY) 326 if (lflag & L_DIRECTORY) 327 327 nodep->type = TMPFS_DIRECTORY; 328 else 328 else 329 329 nodep->type = TMPFS_FILE; 330 330 … … 550 550 size_t size; 551 551 if (!async_data_write_receive(&callid, &size)) { 552 async_answer_0(callid, EINVAL); 552 async_answer_0(callid, EINVAL); 553 553 return EINVAL; 554 554 }
Note:
See TracChangeset
for help on using the changeset viewer.