Changeset a8e9ab8d in mainline for uspace/srv/vfs/vfs.h


Ignore:
Timestamp:
2008-03-09T17:18:30Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4072980
Parents:
2664838b
Message:

Support for rename().

File:
1 edited

Legend:

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

    r2664838b ra8e9ab8d  
    167167#define L_CREATE        8
    168168/**
    169  * L_DESTROY is used to remove leaves from the file system namespace. This flag
     169 * L_LINK is used for linking to an already existing nodes.
     170 */
     171#define L_LINK          16
     172/**
     173 * L_UNLINK is used to remove leaves from the file system namespace. This flag
    170174 * cannot be passed directly by the client, but will be set by VFS during
    171175 * VFS_UNLINK.
    172176 */
    173 #define L_DESTROY       16
     177#define L_UNLINK        32     
     178/**
     179 * L_PARENT performs a lookup but returns the triplet of the parent node.
     180 * This flag may not be combined with any other lookup flag.
     181 */
     182#define L_PARENT        64     
    174183
    175184typedef struct {
     
    251260extern int fs_name_to_handle(char *, bool);
    252261
    253 extern int vfs_lookup_internal(char *, int, vfs_lookup_res_t *, vfs_pair_t *);
     262extern int vfs_lookup_internal(char *, int, vfs_lookup_res_t *, vfs_pair_t *,
     263    ...);
    254264
    255265extern bool vfs_nodes_init(void);
     
    280290extern void vfs_mkdir(ipc_callid_t, ipc_call_t *);
    281291extern void vfs_unlink(ipc_callid_t, ipc_call_t *);
     292extern void vfs_rename(ipc_callid_t, ipc_call_t *);
    282293
    283294#endif
Note: See TracChangeset for help on using the changeset viewer.