Changeset 7b6d98b in mainline for uspace/lib/libfs/libfs.c


Ignore:
Timestamp:
2008-03-05T22:11:57Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
739d00a
Parents:
3ca7059
Message:

No need to keep the parent pointer in the TMPFS node. Moreover, other file
systems won't have it either. Finally, if TMPFS is to support hardlinks, there
can be multiple parents.

File:
1 edited

Legend:

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

    r3ca7059 r7b6d98b  
    146146                last += PLB_SIZE;
    147147
     148        void *par = NULL;
    148149        void *cur = ops->root_get();
    149150        void *tmp = ops->child_get(cur);
     
    207208
    208209                /* descend one level */
     210                par = cur;
    209211                cur = tmp;
    210212                tmp = ops->child_get(tmp);
     
    261263        if (lflag & L_DESTROY) {
    262264                unsigned old_lnkcnt = ops->lnkcnt_get(cur);
    263                 int res = ops->unlink(cur);
     265                int res = ops->unlink(par, cur);
    264266                ipc_answer_5(rid, (ipcarg_t)res, fs_handle, dev_handle,
    265267                    ops->index_get(cur), ops->size_get(cur), old_lnkcnt);
Note: See TracChangeset for help on using the changeset viewer.