Changeset 3712434 in mainline for uspace/lib/ext4/libext4_inode.h


Ignore:
Timestamp:
2011-10-05T12:48:33Z (13 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b9d37bb
Parents:
3711e7e
Message:

Added more getters on basic ext4 structures

File:
1 edited

Legend:

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

    r3711e7e r3712434  
    5050        uint16_t uid; // Low 16 bits of owner uid
    5151        uint32_t size_lo; // Size in bytes
    52 
    53         // TODO Used in HelenOS ???
    54         uint32_t atime; // Access time
    55         uint32_t ctime; // Inode change time
    56         uint32_t mtime; // Modification time
    57         uint32_t dtime; // Deletion time
    58 
     52        uint32_t acess_time; // Access time
     53        uint32_t change_inode_time; // Inode change time
     54        uint32_t modification_time; // Modification time
     55        uint32_t deletion_time; // Deletion time
    5956        uint16_t gid; // Low 16 bits of group id
    6057        uint16_t links_count; // Links count
    61         uint32_t blocks_lo; // Blocks count
     58        uint32_t blocks_count_lo; // Blocks count
    6259        uint32_t flags; // File flags
    6360        uint32_t unused_osd1; // OS dependent - not used in HelenOS
     
    8784} ext4_inode_ref_t;
    8885
    89 extern uint16_t ext4_inode_get_usage_count(ext4_inode_t *);
     86/*
     87extern uint16_t ext4_inode_get_mode(ext4_inode_t *);
     88extern uint32_t ext4_inode_get_uid(ext4_inode_t *);
     89*/
     90extern uint64_t ext4_inode_get_size(ext4_inode_t *);
     91/*
     92extern uint32_t ext4_inode_get_access_time(ext4_inode_t *);
     93extern uint32_t ext4_inode_get_change_inode_time(ext4_inode_t *);
     94extern uint32_t ext4_inode_get_modification_time(ext4_inode_t *);
     95extern uint32_t ext4_inode_get_deletion_time(ext4_inode_t *);
     96extern uint32_t ext4_inode_get_gid(ext4_inode_t *);
     97*/
     98extern uint16_t ext4_inode_get_links_count(ext4_inode_t *);
     99/*
     100extern uint64_t ext4_inode_get_blocks_count(ext4_inode_t *);
     101extern uint32_t ext4_inode_get_flags(ext4_inode_t *);
     102*/
     103
     104/*
     105uint32_t blocks[EXT4_INODE_BLOCKS]; // Pointers to blocks
     106uint32_t generation;
     107uint32_t file_acl_lo; // File ACL
     108uint16_t extra_isize;
     109uint32_t ctime_extra; // Extra change time (nsec << 2 | epoch)
     110uint32_t mtime_extra; // Extra Modification time (nsec << 2 | epoch)
     111uint32_t atime_extra; // Extra Access time (nsec << 2 | epoch)
     112uint32_t crtime; // File creation time
     113uint32_t crtime_extra; // Extra file creation time (nsec << 2 | epoch)
     114uint32_t version_hi;   // High 32 bits for 64-bit version
     115*/
    90116
    91117#endif
Note: See TracChangeset for help on using the changeset viewer.