Changeset 2ab1023 in mainline


Ignore:
Timestamp:
2008-08-10T22:36:30Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9fcdb2e
Parents:
a9d4d2c
Message:

FAT dentry type used for subdirectories doesn't store the directory size in the 'size' field.
Introduce a simple workaround that will let us have 64 directory entries at maximum.

File:
1 edited

Legend:

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

    ra9d4d2c r2ab1023  
    357357                 */
    358358                nodep->type = FAT_DIRECTORY;
     359                /*
     360                 * TODO: determine the size by walking FAT. Surprisingly, the
     361                 * 'size' filed of the FAT dentry is not defined for the
     362                 * directory entry type.
     363                 */
     364                nodep->size = 64 * sizeof(fat_dentry_t);
    359365        } else {
    360366                nodep->type = FAT_FILE;
     367                nodep->size = uint32_t_le2host(d->size);
    361368        }
    362369        nodep->firstc = uint16_t_le2host(d->firstc);
    363         nodep->size = uint32_t_le2host(d->size);
    364370        nodep->lnkcnt = 1;
    365371        nodep->refcnt = 1;
Note: See TracChangeset for help on using the changeset viewer.