Ignore:
File:
1 edited

Legend:

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

    r06256b0 r11baebb  
    6363
    6464typedef enum {
    65         VFS_IN_READ = IPC_FIRST_USER_METHOD,
     65        VFS_IN_OPEN = IPC_FIRST_USER_METHOD,
     66        VFS_IN_READ,
    6667        VFS_IN_WRITE,
    6768        VFS_IN_SEEK,
     
    7475        VFS_IN_SYNC,
    7576        VFS_IN_REGISTER,
     77        VFS_IN_MKDIR,
    7678        VFS_IN_UNLINK,
    7779        VFS_IN_RENAME,
     80        VFS_IN_STAT,
    7881        VFS_IN_DUP,
    7982        VFS_IN_WAIT_HANDLE,
    8083        VFS_IN_MTAB_GET,
    81         VFS_IN_WALK,
    82         VFS_IN_OPEN2,
    83         VFS_IN_UNLINK2,
     84        VFS_IN_STATFS
    8485} vfs_in_request_t;
    8586
     
    9091        VFS_OUT_TRUNCATE,
    9192        VFS_OUT_CLOSE,
     93        VFS_OUT_MOUNT,
    9294        VFS_OUT_MOUNTED,
     95        VFS_OUT_UNMOUNT,
    9396        VFS_OUT_UNMOUNTED,
    94         VFS_OUT_GET_SIZE,
    95         VFS_OUT_IS_EMPTY,
    9697        VFS_OUT_SYNC,
    9798        VFS_OUT_STAT,
    9899        VFS_OUT_LOOKUP,
    99         VFS_OUT_LINK,
    100100        VFS_OUT_DESTROY,
     101        VFS_OUT_STATFS,
    101102        VFS_OUT_LAST
    102103} vfs_out_request_t;
     
    126127
    127128/**
    128  * Lookup will not cross any mount points.
    129  * If the lookup would have to cross a mount point, it returns EXDEV instead.
     129 * Lookup will succeed only if the object is a root directory. The flag is
     130 * mutually exclusive with L_FILE and L_MP.
    130131 */
    131 #define L_DISABLE_MOUNTS        4
     132#define L_ROOT                  4
    132133
    133134/**
     
    150151
    151152/**
     153 * L_LINK is used for linking to an already existing nodes.
     154 */
     155#define L_LINK                  64
     156
     157/**
    152158 * L_UNLINK is used to remove leaves from the file system namespace. This flag
    153159 * cannot be passed directly by the client, but will be set by VFS during
     
    164170#define L_OPEN                  256
    165171
    166 /*
    167  * Walk flags.
    168  */
    169 enum {
    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 
    186 enum {
    187         MODE_READ = 1,
    188         MODE_WRITE = 2,
    189         MODE_APPEND = 4,
    190 };
    191 
    192172#endif
    193173
Note: See TracChangeset for help on using the changeset viewer.