Changeset 4f38ad77 in mainline for uspace/lib/ext4/src/filesystem.c


Ignore:
Timestamp:
2018-12-12T18:11:04Z (6 years ago)
Author:
Maurizio Lombardi <mlombard@…>
Children:
be912f53
Parents:
c9c1ccd
Message:

libext4: fs creation should support different block sizes, not only 1k

This was not possible before because of some wrong assumptions in
ext4_superblock_get_blocks_in_group() and
ext4_superblock_get_group_backup_blocks()
and hardcoded values in ext4_superblock_create()

File:
1 edited

Legend:

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

    rc9c1ccd r4f38ad77  
    714714                /* One for block bitmap one for inode bitmap */
    715715                free_blocks = free_blocks - reserved - 2 - inode_table_blocks;
    716                 if (bg_index == 0)
    717                         ++free_blocks; /* XXX Why? */
    718716
    719717                ext4_block_group_set_free_blocks_count(bg_ref->block_group,
Note: See TracChangeset for help on using the changeset viewer.