Changeset 4f46695e in mainline for uspace/lib/libfs/libfs.c


Ignore:
Timestamp:
2009-05-09T08:39:28Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cf95bc0
Parents:
f4876df
Message:

Lookup a node's parent lexically rather than using the broken L_PARENT flag of
VFS_LOOKUP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libfs/libfs.c

    rf4876df r4f46695e  
    217217                                }
    218218                                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));
    224219                        }
    225220                        ipc_answer_0(rid, ENOENT);
     
    294289
    295290        /* 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         }
    305291        if (lflag & L_UNLINK) {
    306292                unsigned old_lnkcnt = ops->lnkcnt_get(cur);
Note: See TracChangeset for help on using the changeset viewer.