Changeset 616e73c in mainline


Ignore:
Timestamp:
2011-06-27T18:51:15Z (13 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
efa8ed93
Parents:
c4bbca8
Message:

Minor fixes

Location:
uspace/srv/fs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat.c

    rc4bbca8 r616e73c  
    6565 * The connection fibril accepts VFS requests from VFS. If there is only one
    6666 * 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_TO
     67 * to FAT. To overcome this bottleneck, VFS can send exFAT the IPC_M_CONNECT_ME_TO
    6868 * call. In that case, a new connection fibril will be created, which in turn
    6969 * will accept the call. Thus, a new phone will be opened for VFS.
     
    7171 * There are few issues with this arrangement. First, VFS can run out of
    7272 * 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 duplicate
     73 * phone for more serialized requests. Similarily, exFAT can refuse to duplicate
    7474 * the connection. VFS should then just make use of already existing phones and
    7575 * 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 the
     76 * upon each request, exFAT might want to keep the connections open after the
    7777 * request has been completed.
    7878 */
  • uspace/srv/fs/fat/fat_fat.c

    rc4bbca8 r616e73c  
    346346                byte2 = ((uint8_t*) b->data)[(offset % BPS(bs))+1];
    347347
    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));
    355349        if (IS_ODD(clst))
    356350                *value = (*value) >> 4;
  • uspace/srv/fs/fat/fat_ops.c

    rc4bbca8 r616e73c  
    108108        node->dirty = false;
    109109        node->lastc_cached_valid = false;
    110         node->lastc_cached_value = FAT32_CLST_LAST1;
     110        node->lastc_cached_value = 0;
    111111        node->currc_cached_valid = false;
    112112        node->currc_cached_bn = 0;
    113         node->currc_cached_value = FAT32_CLST_LAST1;
     113        node->currc_cached_value = 0;
    114114}
    115115
Note: See TracChangeset for help on using the changeset viewer.