Changeset 368ee04 in mainline for uspace/lib/c/include/ipc/vfs.h
- Timestamp:
- 2017-04-05T18:10:39Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 93ad8166
- Parents:
- 39f892a9 (diff), 2166728 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ipc/vfs.h
r39f892a9 r368ee04 41 41 42 42 #define FS_NAME_MAXLEN 20 43 #define MAX_PATH_LEN ( 64* 1024)43 #define MAX_PATH_LEN (32 * 1024) 44 44 #define MAX_MNTOPTS_LEN 256 45 45 #define PLB_SIZE (2 * MAX_PATH_LEN) … … 63 63 64 64 typedef enum { 65 VFS_IN_OPEN = IPC_FIRST_USER_METHOD, 65 VFS_IN_CLONE = IPC_FIRST_USER_METHOD, 66 VFS_IN_MOUNT, 67 VFS_IN_OPEN, 68 VFS_IN_PUT, 66 69 VFS_IN_READ, 70 VFS_IN_REGISTER, 71 VFS_IN_RENAME, 72 VFS_IN_RESIZE, 73 VFS_IN_STAT, 74 VFS_IN_STATFS, 75 VFS_IN_SYNC, 76 VFS_IN_UNLINK, 77 VFS_IN_UNMOUNT, 78 VFS_IN_WAIT_HANDLE, 79 VFS_IN_WALK, 67 80 VFS_IN_WRITE, 68 VFS_IN_SEEK,69 VFS_IN_TRUNCATE,70 VFS_IN_FSTAT,71 VFS_IN_CLOSE,72 VFS_IN_PING,73 VFS_IN_MOUNT,74 VFS_IN_UNMOUNT,75 VFS_IN_SYNC,76 VFS_IN_REGISTER,77 VFS_IN_MKDIR,78 VFS_IN_UNLINK,79 VFS_IN_RENAME,80 VFS_IN_STAT,81 VFS_IN_DUP,82 VFS_IN_WAIT_HANDLE,83 VFS_IN_MTAB_GET,84 VFS_IN_STATFS85 81 } vfs_in_request_t; 86 82 87 83 typedef enum { 88 VFS_OUT_OPEN_NODE = IPC_FIRST_USER_METHOD, 84 VFS_OUT_CLOSE = IPC_FIRST_USER_METHOD, 85 VFS_OUT_DESTROY, 86 VFS_OUT_IS_EMPTY, 87 VFS_OUT_LINK, 88 VFS_OUT_LOOKUP, 89 VFS_OUT_MOUNTED, 90 VFS_OUT_OPEN_NODE, 89 91 VFS_OUT_READ, 92 VFS_OUT_STAT, 93 VFS_OUT_STATFS, 94 VFS_OUT_SYNC, 95 VFS_OUT_TRUNCATE, 96 VFS_OUT_UNMOUNTED, 90 97 VFS_OUT_WRITE, 91 VFS_OUT_TRUNCATE,92 VFS_OUT_CLOSE,93 VFS_OUT_MOUNT,94 VFS_OUT_MOUNTED,95 VFS_OUT_UNMOUNT,96 VFS_OUT_UNMOUNTED,97 VFS_OUT_SYNC,98 VFS_OUT_STAT,99 VFS_OUT_LOOKUP,100 VFS_OUT_DESTROY,101 VFS_OUT_STATFS,102 98 VFS_OUT_LAST 103 99 } vfs_out_request_t; … … 127 123 128 124 /** 129 * Lookup will succeed only if the object is a root directory. The flag is130 * mutually exclusive with L_FILE and L_MP.125 * Lookup will not cross any mount points. 126 * If the lookup would have to cross a mount point, it returns EXDEV instead. 131 127 */ 132 #define L_ ROOT4128 #define L_DISABLE_MOUNTS 4 133 129 134 130 /** 135 131 * Lookup will succeed only if the object is a mount point. The flag is mutually 136 * exclusive with L_FILE and L_ROOT.132 * exclusive with L_FILE. 137 133 */ 138 134 #define L_MP 8 … … 151 147 152 148 /** 153 * L_LINK is used for linking to an already existing nodes.154 */155 #define L_LINK 64156 157 /**158 149 * L_UNLINK is used to remove leaves from the file system namespace. This flag 159 150 * cannot be passed directly by the client, but will be set by VFS during 160 151 * VFS_UNLINK. 161 152 */ 162 #define L_UNLINK 128153 #define L_UNLINK 64 163 154 164 /** 165 * L_OPEN is used to indicate that the lookup operation is a part of VFS_IN_OPEN 166 * call from the client. This means that the server might allocate some 167 * resources for the opened file. This flag cannot be passed directly by the 168 * client. 155 /* 156 * Walk flags. 169 157 */ 170 #define L_OPEN 256 158 enum { 159 WALK_MAY_CREATE = (1 << 0), 160 WALK_MUST_CREATE = (1 << 1), 161 162 WALK_REGULAR = (1 << 2), 163 WALK_DIRECTORY = (1 << 3), 164 WALK_MOUNT_POINT = (1 << 4), 165 166 WALK_ALL_FLAGS = WALK_MAY_CREATE | WALK_MUST_CREATE | WALK_REGULAR | 167 WALK_DIRECTORY | WALK_MOUNT_POINT, 168 }; 169 170 enum { 171 VFS_MOUNT_BLOCKING = 1, 172 VFS_MOUNT_CONNECT_ONLY = 2, 173 VFS_MOUNT_NO_REF = 4, 174 }; 175 176 enum { 177 MODE_READ = 1, 178 MODE_WRITE = 2, 179 MODE_APPEND = 4, 180 }; 171 181 172 182 #endif
Note:
See TracChangeset
for help on using the changeset viewer.