Changeset 1dff985 in mainline for uspace/srv/vfs/vfs.h
- Timestamp:
- 2017-03-03T21:32:38Z (8 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
r5b46ec8 r1dff985 94 94 vfs_node_type_t type; 95 95 aoff64_t size; 96 unsigned int lnkcnt;97 96 } vfs_lookup_res_t; 98 97 … … 101 100 * which may be associated with it. 102 101 */ 103 typedef struct {102 typedef struct _vfs_node { 104 103 VFS_TRIPLET; /**< Identity of the node. */ 105 104 … … 110 109 unsigned refcnt; 111 110 112 /** Number of names this node has in the file system namespace. */113 unsigned lnkcnt;114 115 111 ht_link_t nh_link; /**< Node hash-table link. */ 116 112 117 113 vfs_node_type_t type; /**< Partial info about the node type. */ 118 114 119 aoff64_t size; /**< Cached size if the node is a file. */115 int64_t size; /**< Cached size if the node is a file. */ 120 116 121 117 /** … … 123 119 */ 124 120 fibril_rwlock_t contents_rwlock; 121 122 struct _vfs_node *mount; 125 123 } vfs_node_t; 126 124 … … 138 136 unsigned refcnt; 139 137 138 int permissions; 139 bool open_read; 140 bool open_write; 141 140 142 /** Append on write. */ 141 143 bool append; … … 176 178 extern vfs_info_t *fs_handle_to_info(fs_handle_t); 177 179 178 extern int vfs_lookup_internal( char *, int, vfs_lookup_res_t *,179 vfs_pair_t *, ...);180 extern int vfs_lookup_internal(vfs_node_t *, char *, int, vfs_lookup_res_t *); 181 extern int vfs_link_internal(vfs_node_t *, char *, vfs_triplet_t *); 180 182 181 183 extern bool vfs_nodes_init(void); 182 184 extern vfs_node_t *vfs_node_get(vfs_lookup_res_t *); 185 extern vfs_node_t *vfs_node_peek(vfs_lookup_res_t *result); 183 186 extern void vfs_node_put(vfs_node_t *); 184 187 extern void vfs_node_forget(vfs_node_t *); 185 188 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, service_id_t); 186 189 190 extern int64_t vfs_node_get_size(vfs_node_t *node); 191 extern bool vfs_node_has_children(vfs_node_t *node); 187 192 188 193 #define MAX_OPEN_FILES 128 … … 207 212 extern void vfs_mount_srv(ipc_callid_t, ipc_call_t *); 208 213 extern void vfs_unmount_srv(ipc_callid_t, ipc_call_t *); 209 extern void vfs_open(ipc_callid_t, ipc_call_t *);210 214 extern void vfs_sync(ipc_callid_t, ipc_call_t *); 211 215 extern void vfs_dup(ipc_callid_t, ipc_call_t *); … … 216 220 extern void vfs_truncate(ipc_callid_t, ipc_call_t *); 217 221 extern void vfs_fstat(ipc_callid_t, ipc_call_t *); 218 extern void vfs_stat(ipc_callid_t, ipc_call_t *);219 extern void vfs_mkdir(ipc_callid_t, ipc_call_t *);220 extern void vfs_unlink(ipc_callid_t, ipc_call_t *);221 222 extern void vfs_rename(ipc_callid_t, ipc_call_t *); 222 223 extern void vfs_wait_handle(ipc_callid_t, ipc_call_t *); … … 233 234 extern int vfs_rdwr_internal(int, bool, rdwr_io_chunk_t *); 234 235 236 extern void vfs_walk(ipc_callid_t, ipc_call_t *); 237 extern void vfs_open2(ipc_callid_t, ipc_call_t *); 238 extern void vfs_unlink2(ipc_callid_t, ipc_call_t *); 239 235 240 #endif 236 241
Note:
See TracChangeset
for help on using the changeset viewer.