Subversion Repositories HelenOS

Rev

Rev 2700 | Rev 2709 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2700 Rev 2704
Line 136... Line 136...
136
 
136
 
137
typedef struct {
137
typedef struct {
138
    VFS_TRIPLET;
138
    VFS_TRIPLET;
139
} vfs_triplet_t;
139
} vfs_triplet_t;
140
 
140
 
-
 
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
 */
141
#define L_FILE      1
149
#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
 */
142
#define L_DIRECTORY 2
155
#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
143
 
171
 
144
typedef struct {
172
typedef struct {
145
    vfs_triplet_t triplet;
173
    vfs_triplet_t triplet;
146
    size_t size;
174
    size_t size;
147
} vfs_lookup_res_t;
175
} vfs_lookup_res_t;