Changeset 1b20da0 in mainline for uspace/srv/vfs
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- Location:
- uspace/srv/vfs
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
rdf6ded8 r1b20da0 168 168 extern list_t plb_entries; /**< List of active PLB entries. */ 169 169 170 /** Holding this rwlock prevents changes in file system namespace. */ 170 /** Holding this rwlock prevents changes in file system namespace. */ 171 171 extern fibril_rwlock_t namespace_rwlock; 172 172 -
uspace/srv/vfs/vfs_file.c
rdf6ded8 r1b20da0 29 29 /** @addtogroup fs 30 30 * @{ 31 */ 31 */ 32 32 33 33 /** … … 277 277 return ENOMEM; 278 278 279 fibril_mutex_lock(&vfs_data->lock); 279 fibril_mutex_lock(&vfs_data->lock); 280 280 rc = _vfs_fd_free_locked(vfs_data, fd); 281 281 fibril_mutex_unlock(&vfs_data->lock); … … 310 310 return ENOMEM; 311 311 312 fibril_mutex_lock(&VFS_DATA->lock); 312 fibril_mutex_lock(&VFS_DATA->lock); 313 313 if ((fd < 0) || (fd >= MAX_OPEN_FILES)) { 314 314 fibril_mutex_unlock(&VFS_DATA->lock); … … 431 431 errno_t vfs_wait_handle_internal(bool high_fd, int *out_fd) 432 432 { 433 vfs_client_data_t *vfs_data = VFS_DATA; 433 vfs_client_data_t *vfs_data = VFS_DATA; 434 434 435 435 fibril_mutex_lock(&vfs_data->lock); -
uspace/srv/vfs/vfs_ipc.c
rdf6ded8 r1b20da0 56 56 57 57 /* 58 * Now we expect the client to send us data with the name of the file 58 * Now we expect the client to send us data with the name of the file 59 59 * system. 60 60 */ … … 136 136 } 137 137 138 /* Now, we expect the client to send us data with the name of the file 138 /* Now, we expect the client to send us data with the name of the file 139 139 * system. 140 140 */ -
uspace/srv/vfs/vfs_node.c
rdf6ded8 r1b20da0 29 29 /** @addtogroup fs 30 30 * @{ 31 */ 31 */ 32 32 33 33 /** -
uspace/srv/vfs/vfs_ops.c
rdf6ded8 r1b20da0 174 174 175 175 /* Add reference to the mounted root. */ 176 *root = vfs_node_get(&res); 176 *root = vfs_node_get(&res); 177 177 if (!*root) { 178 178 aid_t msg = async_send_1(exch, VFS_OUT_UNMOUNTED, … … 401 401 async_wait_for(msg, &rc); 402 402 403 chunk->size = IPC_GET_ARG1(*answer); 403 chunk->size = IPC_GET_ARG1(*answer); 404 404 405 405 return (errno_t) rc; … … 494 494 } 495 495 496 vfs_file_put(file); 496 vfs_file_put(file); 497 497 498 498 return rc; … … 708 708 fibril_rwlock_write_lock(&namespace_rwlock); 709 709 710 /* 710 /* 711 711 * Files are retrieved in order of file descriptors, to prevent 712 712 * deadlock. -
uspace/srv/vfs/vfs_pager.c
rdf6ded8 r1b20da0 81 81 82 82 /* 83 * FIXME: 83 * FIXME: 84 84 * This is just for now until we implement proper page cache 85 85 * management. Not keeping the pages around in a cache results in -
uspace/srv/vfs/vfs_register.c
rdf6ded8 r1b20da0 99 99 */ 100 100 if (info->name[i] != '\0') { 101 dprintf("The name is not properly NULL-terminated.\n"); 101 dprintf("The name is not properly NULL-terminated.\n"); 102 102 return false; 103 103 } … … 331 331 fibril_mutex_lock(&fs_list_lock); 332 332 list_foreach(fs_list, fs_link, fs_info_t, fs) { 333 if (fs->fs_handle == handle) { 333 if (fs->fs_handle == handle) { 334 334 info = &fs->vfs_info; 335 335 break;
Note:
See TracChangeset
for help on using the changeset viewer.