Changeset cf95bc0 in mainline for uspace/lib/libfs


Ignore:
Timestamp:
2009-05-09T21:56:50Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d4a172b
Parents:
4f46695e
Message:

Streamline TMPFS and fix its design so that it properly supports hardlinks.
libfs operation unlink() is now passed also the name of the component being
unlinked.

Location:
uspace/lib/libfs
Files:
2 edited

Legend:

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

    r4f46695e rcf95bc0  
    291291        if (lflag & L_UNLINK) {
    292292                unsigned old_lnkcnt = ops->lnkcnt_get(cur);
    293                 int res = ops->unlink(par, cur);
     293                int res = ops->unlink(par, cur, component);
    294294                ipc_answer_5(rid, (ipcarg_t)res, fs_handle, dev_handle,
    295295                    ops->index_get(cur), ops->size_get(cur), old_lnkcnt);
  • uspace/lib/libfs/libfs.h

    r4f46695e rcf95bc0  
    5353        int (* destroy)(fs_node_t *);
    5454        int (* link)(fs_node_t *, fs_node_t *, const char *);
    55         int (* unlink)(fs_node_t *, fs_node_t *);
     55        int (* unlink)(fs_node_t *, fs_node_t *, const char *);
    5656        fs_index_t (* index_get)(fs_node_t *);
    5757        size_t (* size_get)(fs_node_t *);
Note: See TracChangeset for help on using the changeset viewer.