Changeset fdb7795 in mainline for uspace/srv/vfs


Ignore:
Timestamp:
2008-02-25T22:22:57Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6c441cf8
Parents:
07e01e6
Message:

Separate creation of a TMPFS node and its linking in the file system name space.
Rename VFS_FREE to VFS_DESTROY and destroy_node() to unlink_node().

Location:
uspace/srv/vfs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs.h

    r07e01e6 rfdb7795  
    5858typedef enum {
    5959        VFS_LOOKUP = VFS_LAST_CMN,
    60         VFS_FREE,
     60        VFS_DESTROY,
    6161        VFS_LAST_CLNT,  /* keep this the last member of this enum */
    6262} vfs_request_clnt_t;
  • uspace/srv/vfs/vfs_node.c

    r07e01e6 rfdb7795  
    132132                int phone = vfs_grab_phone(node->fs_handle);
    133133                ipcarg_t rc;
    134                 rc = async_req_2_0(phone, VFS_FREE, (ipcarg_t)node->dev_handle,
    135                     (ipcarg_t)node->index);
     134                rc = async_req_2_0(phone, VFS_DESTROY,
     135                    (ipcarg_t)node->dev_handle, (ipcarg_t)node->index);
    136136                assert(rc == EOK);
    137137                vfs_release_phone(phone);
  • uspace/srv/vfs/vfs_ops.c

    r07e01e6 rfdb7795  
    678678         * The name has already been unlinked by vfs_lookup_internal().
    679679         * We have to get and put the VFS node to ensure that it is
    680          * VFS_FREE'd after the last reference to it is dropped.
     680         * VFS_DESTROY'ed after the last reference to it is dropped.
    681681         */
    682682        vfs_node_t *node = vfs_node_get(&lr);
Note: See TracChangeset for help on using the changeset viewer.