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


Ignore:
Timestamp:
2012-03-29T11:11:32Z (14 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
38384ae
Parents:
47faec1
Message:

find extent procedure with path saving (it's slow), for loading block will be probably used not saving variant

File:
1 edited

Legend:

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

    r47faec1 rfffb061  
    4747        fs->device = service_id;
    4848
    49         // TODO what does constant 2048 mean?
    50         rc = block_init(EXCHANGE_SERIALIZE, fs->device, 2048);
     49        rc = block_init(EXCHANGE_SERIALIZE, fs->device, 4096);
    5150        if (rc != EOK) {
    5251                return rc;
     
    733732        int rc;
    734733
    735 
    736         /* TODO handle extents */
    737 
    738 
    739734        uint32_t fblock;
     735
     736        /* TODO Handle extents */
     737//      if (ext4_superblock_has_feature_incompatible(fs->superblock, EXT4_FEATURE_INCOMPAT_EXTENTS) &&
     738//                      ext4_inode_has_flag(inode_ref->inode, EXT4_INODE_FLAG_EXTENTS)) {
     739////            rc = ext4_extent_find_block(fs, inode_ref, iblock, &current_block);
     740////
     741////            if (rc != EOK) {
     742////                    return rc;
     743////            }
     744////
     745////            *fblock = current_block;
     746//
     747//              // TODO release block from extents (and return fblock)
     748//
     749//              fblock = 0;
     750//
     751//              if (fblock == 0) {
     752//                      return EOK;
     753//              }
     754//
     755//              return ext4_balloc_free_block(fs, inode_ref, fblock);
     756//
     757//              return EOK;
     758//
     759//      }
     760
     761
     762
    740763        ext4_inode_t *inode = inode_ref->inode;
    741764
Note: See TracChangeset for help on using the changeset viewer.