Changeset 1a7756a in mainline for uspace/lib/ext4/libext4_extent.c


Ignore:
Timestamp:
2011-10-12T09:37:59Z (14 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1ccc32f
Parents:
8958a26
Message:

support for reading more complex extents (tree with nonzero depth)

File:
1 edited

Legend:

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

    r8958a26 r1a7756a  
    5656}
    5757
     58uint32_t ext4_extent_index_get_first_block(ext4_extent_index_t *index)
     59{
     60        return uint32_t_le2host(index->first_block);
     61}
     62
     63uint64_t ext4_extent_index_get_leaf(ext4_extent_index_t *index)
     64{
     65        return ((uint64_t)uint16_t_le2host(index->leaf_hi)) << 32 |
     66                                ((uint64_t)uint32_t_le2host(index->leaf_lo));
     67}
     68
    5869uint16_t ext4_extent_header_get_magic(ext4_extent_header_t *header)
    5970{
Note: See TracChangeset for help on using the changeset viewer.