Changeset b5db2ae in mainline for uspace/srv/fs/fat/fat_fat.c


Ignore:
Timestamp:
2011-05-01T09:15:06Z (13 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
979c313a
Parents:
0a51029f
Message:
  1. Add macros for determining first cluster of root directory (FAT_ROOT_CLST)
  2. Root directory (FAT32) can consist of many clusters rather than of only one.
  3. Using FAT_CLST_ROOT value to determining root directory first cluster

is applicable only to FAT12/16 filesystem.

File:
1 edited

Legend:

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

    r0a51029f rb5db2ae  
    139139                return ELIMIT;
    140140
    141         if (nodep->firstc == FAT_CLST_ROOT)
     141        if (!FAT_IS_FAT32(bs) && nodep->firstc == FAT_CLST_ROOT)
    142142                goto fall_through;
    143143
     
    207207                return ELIMIT;
    208208
    209         if (fcl == FAT_CLST_ROOT) {
     209        if (!FAT_IS_FAT32(bs) && fcl == FAT_CLST_ROOT) {
    210210                /* root directory special case */
    211211                assert(bn < RDS(bs));
Note: See TracChangeset for help on using the changeset viewer.