Changes in uspace/srv/vfs/vfs.h [f29a3a2:991f645] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
rf29a3a2 r991f645 42 42 #include <ipc/vfs.h> 43 43 44 // FIXME: according to CONFIG_DEBUG 45 // #define dprintf(...) printf(__VA_ARGS__) 46 47 #define dprintf(...) 44 #ifndef dprintf 45 #define dprintf(...) 46 #endif 48 47 49 48 /** … … 63 62 #define VFS_PAIR \ 64 63 fs_handle_t fs_handle; \ 65 dev _handle_t dev_handle;64 devmap_handle_t devmap_handle; 66 65 67 66 /** … … 69 68 * doesn't contain any state. For a stateful structure, see vfs_node_t. 70 69 * 71 * @note fs_handle, dev _handle and index are meant to be returned in one70 * @note fs_handle, devmap_handle and index are meant to be returned in one 72 71 * IPC reply. 73 72 */ … … 93 92 vfs_triplet_t triplet; 94 93 vfs_node_type_t type; 95 size_t size;96 unsigned lnkcnt;94 aoff64_t size; 95 unsigned int lnkcnt; 97 96 } vfs_lookup_res_t; 98 97 … … 117 116 vfs_node_type_t type; /**< Partial info about the node type. */ 118 117 119 size_t size; /**< Cached size if the node is a file. */118 aoff64_t size; /**< Cached size if the node is a file. */ 120 119 121 120 /** … … 141 140 bool append; 142 141 143 /** Current position in the file. */144 off_t pos;142 /** Current absolute position in the file. */ 143 aoff64_t pos; 145 144 } vfs_file_t; 146 145 … … 170 169 171 170 extern int vfs_grab_phone(fs_handle_t); 172 extern void vfs_release_phone( int);171 extern void vfs_release_phone(fs_handle_t, int); 173 172 174 173 extern fs_handle_t fs_name_to_handle(char *, bool); … … 183 182 extern void vfs_node_put(vfs_node_t *); 184 183 extern void vfs_node_forget(vfs_node_t *); 185 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, dev _handle_t);184 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, devmap_handle_t); 186 185 187 186 … … 214 213 extern void vfs_truncate(ipc_callid_t, ipc_call_t *); 215 214 extern void vfs_fstat(ipc_callid_t, ipc_call_t *); 216 extern void vfs_fstat(ipc_callid_t, ipc_call_t *);217 215 extern void vfs_stat(ipc_callid_t, ipc_call_t *); 218 216 extern void vfs_mkdir(ipc_callid_t, ipc_call_t *);
Note:
See TracChangeset
for help on using the changeset viewer.