Changeset 4f46695e in mainline for uspace/lib/libfs/libfs.c
- Timestamp:
- 2009-05-09T08:39:28Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cf95bc0
- Parents:
- f4876df
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libfs/libfs.c
rf4876df r4f46695e 217 217 } 218 218 goto out; 219 } else if (lflag & L_PARENT) {220 /* return parent */221 ipc_answer_5(rid, EOK, fs_handle, dev_handle,222 ops->index_get(cur), ops->size_get(cur),223 ops->lnkcnt_get(cur));224 219 } 225 220 ipc_answer_0(rid, ENOENT); … … 294 289 295 290 /* handle hit */ 296 if (lflag & L_PARENT) {297 ops->node_put(cur);298 cur = par;299 par = NULL;300 if (!cur) {301 ipc_answer_0(rid, ENOENT);302 goto out;303 }304 }305 291 if (lflag & L_UNLINK) { 306 292 unsigned old_lnkcnt = ops->lnkcnt_get(cur);
Note:
See TracChangeset
for help on using the changeset viewer.