Changeset b7c62a9 in mainline for uspace/lib/fs/libfs.c
- Timestamp:
- 2013-07-29T11:44:35Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 677745a
- Parents:
- 9e9b168
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fs/libfs.c
r9e9b168 rb7c62a9 203 203 service_id_t service_id = (service_id_t) IPC_GET_ARG1(*req); 204 204 fs_index_t index = (fs_index_t) IPC_GET_ARG2(*req); 205 205 206 int rc; 206 207 rc = vfs_out_ops->destroy(service_id, index); 208 207 fs_node_t *node = NULL; 208 rc = libfs_ops->node_get(&node, service_id, index); 209 if (rc == EOK && node != NULL) { 210 bool destroy = (libfs_ops->lnkcnt_get(node) == 0); 211 libfs_ops->node_put(node); 212 if (destroy) { 213 rc = vfs_out_ops->destroy(service_id, index); 214 } 215 } 209 216 async_answer_0(rid, rc); 210 217 } … … 769 776 async_answer_5(rid, fs_handle, service_id, 770 777 ops->index_get(cur), LOWER32(size), UPPER32(size), 771 ops-> lnkcnt_get(cur));778 ops->is_directory(cur) ? VFS_NODE_DIRECTORY : VFS_NODE_FILE); 772 779 LOG_EXIT(EOK); 773 780 } else { … … 831 838 async_answer_5(rid, fs_handle, service_id, 832 839 ops->index_get(cur), LOWER32(size), UPPER32(size), 833 ops-> lnkcnt_get(cur));840 ops->is_directory(cur) ? VFS_NODE_DIRECTORY : VFS_NODE_FILE); 834 841 835 842 LOG_EXIT(EOK);
Note:
See TracChangeset
for help on using the changeset viewer.