Changeset 0a51029f in mainline for uspace/srv/fs/fat/fat_ops.c


Ignore:
Timestamp:
2011-05-01T07:02:34Z (13 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b5db2ae
Parents:
aa2ea13
Message:

Implemented readonly access to FAT32 file system
Support reading root directory, subdirs and files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    raa2ea13 r0a51029f  
    10551055
    10561056        rootp->type = FAT_DIRECTORY;
    1057         rootp->firstc = FAT_CLST_ROOT;
     1057        rootp->firstc = (FAT_IS_FAT32(bs) ? bs->fat32.root_cluster : FAT_CLST_ROOT);
    10581058        rootp->refcnt = 1;
    10591059        rootp->lnkcnt = 0;      /* FS root is not linked */
    1060         rootp->size = RDE(bs) * sizeof(fat_dentry_t);
     1060        rootp->size = (FAT_IS_FAT32(bs) ? SPC(bs)*BPS(bs) :
     1061            RDE(bs) * sizeof(fat_dentry_t));
    10611062        rootp->idx = ridxp;
    10621063        ridxp->nodep = rootp;
Note: See TracChangeset for help on using the changeset viewer.