Changeset 1d69c69 in mainline for uspace/lib/ext4/libext4_ialloc.c


Ignore:
Timestamp:
2012-01-30T09:23:12Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
512a7df
Parents:
7c506ced
Message:

Bugfix for higher filesystem version (directory entry type not setting properly)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/libext4_ialloc.c

    r7c506ced r1d69c69  
    139139        while (bgid < bg_count) {
    140140
    141                 EXT4FS_DBG("testing bg \%u", bgid);
    142 
    143141                ext4_block_group_ref_t *bg_ref;
    144142                rc = ext4_filesystem_get_block_group_ref(fs, bgid, &bg_ref);
     
    169167                        rc = ext4_bitmap_find_free_bit_and_set(
    170168                                        bitmap_block->data, 0, &index_in_group, inodes_in_group);
    171 //                      if (rc == ENOSPC) {
    172 //                              block_put(bitmap_block);
    173 //                              ext4_filesystem_put_block_group_ref(bg_ref);
    174 //                              continue;
    175 //                      }
     169
     170                        // TODO check
     171                        if (rc == ENOSPC) {
     172                                block_put(bitmap_block);
     173                                ext4_filesystem_put_block_group_ref(bg_ref);
     174                                continue;
     175                        }
    176176
    177177                        bitmap_block->dirty = true;
Note: See TracChangeset for help on using the changeset viewer.