Changeset 052e82d in mainline for uspace/lib/ext4/libext4_inode.c


Ignore:
Timestamp:
2011-11-07T11:50:31Z (13 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
12b4a7f
Parents:
5664cf64
Message:

partially functional truncate operation

File:
1 edited

Legend:

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

    r5664cf64 r052e82d  
    6767                return ((uint64_t)uint32_t_le2host(inode->size_hi)) << 32 |
    6868                            ((uint64_t)uint32_t_le2host(inode->size_lo));
    69                 }
     69        }
    7070        return uint32_t_le2host(inode->size_lo);
     71}
     72
     73void ext4_inode_set_size(ext4_inode_t *inode, uint64_t value) {
     74        inode->size_lo = host2uint32_t_le((value << 32) >> 32);
     75        inode->size_hi = host2uint32_t_le(value >> 32);
    7176}
    7277
Note: See TracChangeset for help on using the changeset viewer.