Changeset b12ca16 in mainline for uspace/srv/fs/ext4fs/ext4fs_ops.c


Ignore:
Timestamp:
2011-11-18T15:30:24Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d5ba17f
Parents:
e18de3c
Message:

improved block allocator - but has some bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/ext4fs/ext4fs_ops.c

    re18de3c rb12ca16  
    973973        if (fblock == 0) {
    974974
    975                 rc =  ext4_bitmap_alloc_block(fs, inode_ref, &fblock);
     975                rc =  ext4_balloc_alloc_block(fs, inode_ref, &fblock);
    976976                if (rc != EOK) {
    977977                        EXT4FS_DBG("allocation failed");
     
    981981                }
    982982
    983                 ext4_filesystem_set_inode_data_block_index(fs, inode_ref, iblock, fblock);
     983                rc = ext4_filesystem_set_inode_data_block_index(fs, inode_ref, iblock, fblock);
     984                if (rc != EOK) {
     985                        EXT4FS_DBG("ERROR: setting index failed");
     986                }
    984987                inode_ref->dirty = true;
    985988
    986989                flags = BLOCK_FLAGS_NOREAD;
    987 
    988990        }
    989991
Note: See TracChangeset for help on using the changeset viewer.