Changeset 8958a26 in mainline for uspace/lib/ext4/libext4_extent.c


Ignore:
Timestamp:
2011-10-11T19:06:10Z (13 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a7756a
Parents:
acd869e
Message:

Extent reading (only with zero depth)

File:
1 edited

Legend:

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

    racd869e r8958a26  
    3939#include "libext4_extent.h"
    4040
     41uint32_t ext4_extent_get_first_block(ext4_extent_t *extent)
     42{
     43        return uint32_t_le2host(extent->first_block);
     44}
     45
     46uint16_t ext4_extent_get_block_count(ext4_extent_t *extent)
     47{
     48        return uint16_t_le2host(extent->block_count);
     49}
     50
     51uint64_t ext4_extent_get_start(ext4_extent_t *extent)
     52{
     53        return ((uint64_t)uint16_t_le2host(extent->start_hi)) << 32 |
     54                        ((uint64_t)uint32_t_le2host(extent->start_lo));
     55
     56}
     57
    4158uint16_t ext4_extent_header_get_magic(ext4_extent_header_t *header)
    4259{
Note: See TracChangeset for help on using the changeset viewer.