Ignore:
File:
1 edited

Legend:

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

    r11baebb r06256b0  
    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_WALK,
     82        VFS_IN_OPEN2,
     83        VFS_IN_UNLINK2,
    8584} vfs_in_request_t;
    8685
     
    9190        VFS_OUT_TRUNCATE,
    9291        VFS_OUT_CLOSE,
    93         VFS_OUT_MOUNT,
    9492        VFS_OUT_MOUNTED,
    95         VFS_OUT_UNMOUNT,
    9693        VFS_OUT_UNMOUNTED,
     94        VFS_OUT_GET_SIZE,
     95        VFS_OUT_IS_EMPTY,
    9796        VFS_OUT_SYNC,
    9897        VFS_OUT_STAT,
    9998        VFS_OUT_LOOKUP,
     99        VFS_OUT_LINK,
    100100        VFS_OUT_DESTROY,
    101         VFS_OUT_STATFS,
    102101        VFS_OUT_LAST
    103102} vfs_out_request_t;
     
    127126
    128127/**
    129  * Lookup will succeed only if the object is a root directory. The flag is
    130  * mutually exclusive with L_FILE and L_MP.
     128 * Lookup will not cross any mount points.
     129 * If the lookup would have to cross a mount point, it returns EXDEV instead.
    131130 */
    132 #define L_ROOT                  4
     131#define L_DISABLE_MOUNTS        4
    133132
    134133/**
     
    151150
    152151/**
    153  * L_LINK is used for linking to an already existing nodes.
    154  */
    155 #define L_LINK                  64
    156 
    157 /**
    158152 * L_UNLINK is used to remove leaves from the file system namespace. This flag
    159153 * cannot be passed directly by the client, but will be set by VFS during
     
    170164#define L_OPEN                  256
    171165
     166/*
     167 * Walk flags.
     168 */
     169enum {
     170        /**
     171         * WALK_PARTIAL requests that if the whole path cannot be traversed,
     172         * the walk() operation should return the last visited file, along
     173         * with an indication of how many directories have been traversed.
     174         */
     175        //WALK_PARTIAL = (1 << 0),
     176       
     177        WALK_MAY_CREATE = (1 << 1),
     178        WALK_MUST_CREATE = (1 << 2),
     179       
     180        WALK_REGULAR = (1 << 3),
     181        WALK_DIRECTORY = (1 << 4),
     182       
     183        WALK_ALL_FLAGS = WALK_MAY_CREATE | WALK_MUST_CREATE | WALK_REGULAR | WALK_DIRECTORY,
     184};
     185
     186enum {
     187        MODE_READ = 1,
     188        MODE_WRITE = 2,
     189        MODE_APPEND = 4,
     190};
     191
    172192#endif
    173193
Note: See TracChangeset for help on using the changeset viewer.