Changeset 911ee54 in mainline


Ignore:
Timestamp:
2011-06-03T22:30:41Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4e36219, ff4f073
Parents:
95afd72
Message:

Check directory entry also in interator init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext2/libext2_directory.c

    r95afd72 r911ee54  
    9393        int rc;
    9494        uint32_t block_id;
     95        uint32_t block_size;
     96       
    9597        it->inode_ref = inode_ref;
    9698        it->fs = fs;
     
    108110        }
    109111       
    110         it->current = it->current_block->data;
    111         it->current_offset = 0;
    112        
    113         return EOK;
     112        block_size = ext2_superblock_get_block_size(fs->superblock);
     113       
     114        it->current_offset = 0;
     115        return ext2_directory_iterator_set(it, block_size);
    114116}
    115117
     
    178180       
    179181        it->current_offset += skip;
    180        
    181182        return ext2_directory_iterator_set(it, block_size);
    182183}
Note: See TracChangeset for help on using the changeset viewer.