Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d45660a in mainline


Ignore:
Timestamp:
2010-01-15T20:34:05Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
dc9162b
Parents:
5edb1f5 (diff), 92bee46 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge FAT server fix.

File:
1 edited

Legend:

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

    r5edb1f5 rd45660a  
    324324        /* Check number of sectors per FAT. */
    325325        if (bs->sec_per_fat == 0)
     326                return ENOTSUP;
     327
     328        /*
     329         * Check that the root directory entries take up whole blocks.
     330         * This check is rather strict, but it allows us to treat the root
     331         * directory and non-root directories uniformly in some places.
     332         * It can be removed provided that functions such as fat_read() are
     333         * sanitized to support file systems with this property.
     334         */
     335        if ((uint16_t_le2host(bs->root_ent_max) * sizeof(fat_dentry_t)) %
     336            uint16_t_le2host(bs->bps) != 0)
    326337                return ENOTSUP;
    327338
Note: See TracChangeset for help on using the changeset viewer.