Changeset f15cf1a6 in mainline for uspace/srv/fs/tmpfs/tmpfs_ops.c


Ignore:
Timestamp:
2008-02-17T16:22:10Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cf19ab5
Parents:
e704503
Message:

Support for rmdir(), unlink() and the respective VFS operations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    re704503 rf15cf1a6  
    331331        /* handle hit */
    332332        if (lflag & L_DESTROY) {
     333                unsigned old_lnkcnt = TMPFS_GET_LNKCNT(dcur);
    333334                int res = destroy_component(dcur);
    334                 unsigned lnkcnt = (res == EOK) ? 0 : TMPFS_GET_LNKCNT(dcur);
    335335                ipc_answer_5(rid, (ipcarg_t)res, tmpfs_reg.fs_handle,
    336                     dev_handle, dcur->index, dcur->size, lnkcnt);
     336                    dev_handle, dcur->index, dcur->size, old_lnkcnt);
    337337                return;
    338338        }
Note: See TracChangeset for help on using the changeset viewer.