Changeset 9415601 in mainline


Ignore:
Timestamp:
2008-01-26T12:08:29Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b8b23c8
Parents:
19077a5
Message:

Additional VFS lookup flags.

File:
1 edited

Legend:

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

    r19077a5 r9415601  
    139139} vfs_triplet_t;
    140140
     141/*
     142 * Lookup flags.
     143 */
     144/**
     145 * Lookup will succeed only if the object is a regular file.  If L_CREATE is
     146 * specified, an empty file will be created. This flag is mutually exclusive
     147 * with L_DIRECTORY.
     148 */
    141149#define L_FILE          1
     150/**
     151 * Lookup wil succeed only if the object is a directory. If L_CREATE is
     152 * specified, an empty directory will be created. This flag is mutually
     153 * exclusive with L_FILE.
     154 */
    142155#define L_DIRECTORY     2
     156/**
     157 * When used with L_CREATE, L_EXCLUSIVE will cause the lookup to fail if the
     158 * object already exists. L_EXCLUSIVE is implied when L_DIRECTORY is used.
     159 */
     160#define L_EXCLUSIVE     4
     161/**
     162 * L_CREATE is used for creating both regular files and directories.
     163 */
     164#define L_CREATE        8
     165/**
     166 * L_DESTROY is used to remove leaves from the file system namespace. This flag
     167 * cannot be passed directly by the client, but will be set by VFS during
     168 * VFS_UNLINK.
     169 */
     170#define L_DESTROY       16
    143171
    144172typedef struct {
Note: See TracChangeset for help on using the changeset viewer.