Changeset 1dff985 in mainline for uspace/lib/c/include/ipc/vfs.h


Ignore:
Timestamp:
2017-03-03T21:32:38Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c577a9a
Parents:
5b46ec8 (diff), b8dbe2f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~zarevucky-jiri/helenos/vfs-2.5 up to revision 1926

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/vfs.h

    r5b46ec8 r1dff985  
    6363
    6464typedef enum {
    65         VFS_IN_OPEN = IPC_FIRST_USER_METHOD,
    66         VFS_IN_READ,
     65        VFS_IN_READ = IPC_FIRST_USER_METHOD,
    6766        VFS_IN_WRITE,
    6867        VFS_IN_SEEK,
     
    7574        VFS_IN_SYNC,
    7675        VFS_IN_REGISTER,
    77         VFS_IN_MKDIR,
    7876        VFS_IN_UNLINK,
    7977        VFS_IN_RENAME,
    80         VFS_IN_STAT,
    8178        VFS_IN_DUP,
    8279        VFS_IN_WAIT_HANDLE,
    8380        VFS_IN_MTAB_GET,
    84         VFS_IN_STATFS
     81        VFS_IN_STATFS,
     82        VFS_IN_WALK,
     83        VFS_IN_OPEN2,
     84        VFS_IN_UNLINK2,
    8585} vfs_in_request_t;
    8686
     
    9191        VFS_OUT_TRUNCATE,
    9292        VFS_OUT_CLOSE,
    93         VFS_OUT_MOUNT,
    9493        VFS_OUT_MOUNTED,
    95         VFS_OUT_UNMOUNT,
    9694        VFS_OUT_UNMOUNTED,
     95        VFS_OUT_GET_SIZE,
     96        VFS_OUT_IS_EMPTY,
    9797        VFS_OUT_SYNC,
    9898        VFS_OUT_STAT,
    9999        VFS_OUT_LOOKUP,
     100        VFS_OUT_LINK,
    100101        VFS_OUT_DESTROY,
    101102        VFS_OUT_STATFS,
     
    127128
    128129/**
    129  * Lookup will succeed only if the object is a root directory. The flag is
    130  * mutually exclusive with L_FILE and L_MP.
     130 * Lookup will not cross any mount points.
     131 * If the lookup would have to cross a mount point, it returns EXDEV instead.
    131132 */
    132 #define L_ROOT                  4
     133#define L_DISABLE_MOUNTS        4
    133134
    134135/**
     
    151152
    152153/**
    153  * L_LINK is used for linking to an already existing nodes.
    154  */
    155 #define L_LINK                  64
    156 
    157 /**
    158154 * L_UNLINK is used to remove leaves from the file system namespace. This flag
    159155 * cannot be passed directly by the client, but will be set by VFS during
     
    170166#define L_OPEN                  256
    171167
     168/*
     169 * Walk flags.
     170 */
     171enum {
     172        /**
     173         * WALK_PARTIAL requests that if the whole path cannot be traversed,
     174         * the walk() operation should return the last visited file, along
     175         * with an indication of how many directories have been traversed.
     176         */
     177        //WALK_PARTIAL = (1 << 0),
     178       
     179        WALK_MAY_CREATE = (1 << 1),
     180        WALK_MUST_CREATE = (1 << 2),
     181       
     182        WALK_REGULAR = (1 << 3),
     183        WALK_DIRECTORY = (1 << 4),
     184       
     185        WALK_ALL_FLAGS = WALK_MAY_CREATE | WALK_MUST_CREATE | WALK_REGULAR | WALK_DIRECTORY,
     186};
     187
     188enum {
     189        MODE_READ = 1,
     190        MODE_WRITE = 2,
     191        MODE_APPEND = 4,
     192};
     193
    172194#endif
    173195
Note: See TracChangeset for help on using the changeset viewer.