Changeset b73530a in mainline for uspace/lib/ext4/libext4_filesystem.c


Ignore:
Timestamp:
2012-04-08T14:01:49Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
82cb6768
Parents:
936132f
Message:

appending fblock to existing extent

  • actually not solved situation, when extent is full !!!
File:
1 edited

Legend:

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

    r936132f rb73530a  
    578578
    579579int ext4_filesystem_get_inode_data_block_index(ext4_inode_ref_t *inode_ref,
    580                 aoff64_t iblock, uint32_t* fblock)
     580                aoff64_t iblock, uint32_t *fblock)
    581581{
    582582        int rc;
    583583
    584584        ext4_filesystem_t *fs = inode_ref->fs;
     585
     586        if (ext4_inode_get_size(fs->superblock, inode_ref->inode) == 0) {
     587                *fblock = 0;
     588                return EOK;
     589        }
    585590
    586591        uint32_t current_block;
Note: See TracChangeset for help on using the changeset viewer.