Changeset e2f20b9e in mainline for uspace/lib/ext4/src/superblock.c


Ignore:
Timestamp:
2018-12-13T13:29:38Z (7 years ago)
Author:
Maurizio Lombardi <mlombard@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ea5e7a
Parents:
91fcbabc
Message:

libext4: fixes to flex support in ext4_balloc_get_first_data_block_in_group()

The "first data block in group" was not calculated correctly.
As a consequence, the ext4 filesystem was not able to fully utilize
the available disk space

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/src/superblock.c

    r91fcbabc re2f20b9e  
    13941394{
    13951395        sb->reserved_gdt_blocks = host2uint32_t_le(n);
     1396}
     1397
     1398/** Get the size of the flex groups
     1399 *
     1400 * @param sb    Pointer to the superblock
     1401 *
     1402 * @return      Size of the flex groups
     1403 */
     1404uint32_t ext4_superblock_get_flex_group_size(ext4_superblock_t *sb)
     1405{
     1406        return 2 << sb->log_groups_per_flex;
    13961407}
    13971408
Note: See TracChangeset for help on using the changeset viewer.