Changeset 616e73c in mainline
- Timestamp:
- 2011-06-27T18:51:15Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- efa8ed93
- Parents:
- c4bbca8
- Location:
- uspace/srv/fs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat.c
rc4bbca8 r616e73c 65 65 * The connection fibril accepts VFS requests from VFS. If there is only one 66 66 * instance of the fibril, VFS will need to serialize all VFS requests it sends 67 * to FAT. To overcome this bottleneck, VFS can send FAT the IPC_M_CONNECT_ME_TO67 * to FAT. To overcome this bottleneck, VFS can send exFAT the IPC_M_CONNECT_ME_TO 68 68 * call. In that case, a new connection fibril will be created, which in turn 69 69 * will accept the call. Thus, a new phone will be opened for VFS. … … 71 71 * There are few issues with this arrangement. First, VFS can run out of 72 72 * available phones. In that case, VFS can close some other phones or use one 73 * phone for more serialized requests. Similarily, FAT can refuse to duplicate73 * phone for more serialized requests. Similarily, exFAT can refuse to duplicate 74 74 * the connection. VFS should then just make use of already existing phones and 75 75 * route its requests through them. To avoid paying the fibril creation price 76 * upon each request, FAT might want to keep the connections open after the76 * upon each request, exFAT might want to keep the connections open after the 77 77 * request has been completed. 78 78 */ -
uspace/srv/fs/fat/fat_fat.c
rc4bbca8 r616e73c 346 346 byte2 = ((uint8_t*) b->data)[(offset % BPS(bs))+1]; 347 347 348 #ifdef __BE__ 349 *value = byte2 | (byte1 << 8); 350 #else 351 *value = byte1 | (byte2 << 8); 352 #endif 353 354 *value = uint16_t_le2host(*value); 348 *value = uint16_le2host(byte1 | (byte2 << 8)); 355 349 if (IS_ODD(clst)) 356 350 *value = (*value) >> 4; -
uspace/srv/fs/fat/fat_ops.c
rc4bbca8 r616e73c 108 108 node->dirty = false; 109 109 node->lastc_cached_valid = false; 110 node->lastc_cached_value = FAT32_CLST_LAST1;110 node->lastc_cached_value = 0; 111 111 node->currc_cached_valid = false; 112 112 node->currc_cached_bn = 0; 113 node->currc_cached_value = FAT32_CLST_LAST1;113 node->currc_cached_value = 0; 114 114 } 115 115
Note:
See TracChangeset
for help on using the changeset viewer.