Changeset 2add9ec in mainline for uspace/lib/ext4/libext4_inode.c


Ignore:
Timestamp:
2012-05-06T08:15:01Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3169f3b0
Parents:
2226cc3
Message:

some i-node comments

File:
1 edited

Legend:

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

    r2226cc3 r2add9ec  
    136136}
    137137
     138/** Get time, when i-node was last accessed.
     139 *
     140 * @param inode         i-node
     141 * @return                      time of the last access (POSIX)
     142 */
    138143uint32_t ext4_inode_get_access_time(ext4_inode_t *inode)
    139144{
     
    141146}
    142147
    143 /** TODO comment
    144  *
     148/** Set time, when i-node was last accessed.
     149 *
     150 * @param inode         i-node
     151 * @param time          time of the last access (POSIX)
    145152 */
    146153void ext4_inode_set_access_time(ext4_inode_t *inode, uint32_t time)
     
    237244}
    238245
    239 /** TODO comment
    240  *
     246/** Get number of 512-bytes blocks used for i-node.
     247 *
     248 * @param sb            superblock
     249 * @param inode         i-node
     250 * @return                      number of 512-bytes blocks
    241251 */
    242252uint64_t ext4_inode_get_blocks_count(ext4_superblock_t *sb, ext4_inode_t *inode)
     
    258268                return uint32_t_le2host(inode->blocks_count_lo);
    259269    }
    260 
    261 }
    262 
    263 
    264 /** TODO comment
    265  *
     270}
     271
     272/** Set number of 512-bytes blocks used for i-node.
     273 *
     274 * @param sb            superblock
     275 * @param inode         i-node
     276 * @param count         number of 512-bytes blocks
     277 * @return                      error code
    266278 */
    267279int ext4_inode_set_blocks_count(ext4_superblock_t *sb, ext4_inode_t *inode,
     
    279291    }
    280292
     293    // Check if there can be used huge files (many blocks)
    281294    if (!ext4_superblock_has_feature_read_only(sb, EXT4_FEATURE_RO_COMPAT_HUGE_FILE)) {
    282295        return EINVAL;
     
    320333}
    321334
    322 /** TODO comment
    323  *
     335/** Get file generation (used by NFS).
     336 *
     337 * @param inode         i-node
     338 * @return                      file generation
    324339 */
    325340uint32_t ext4_inode_get_generation(ext4_inode_t *inode)
     
    328343}
    329344
    330 /** TODO comment
    331  *
     345/** Set file generation (used by NFS).
     346 *
     347 * @param inode                 i-node
     348 * @param generation    file generation
    332349 */
    333350void ext4_inode_set_generation(ext4_inode_t *inode, uint32_t generation)
     
    336353}
    337354
    338 /** TODO comment
    339  *
     355/** Get address of block, where are extended attributes located.
     356 *
     357 * @param inode                 i-node
     358 * @param sb                    superblock
     359 * @return                              block address
    340360 */
    341361uint64_t ext4_inode_get_file_acl(ext4_inode_t *inode, ext4_superblock_t *sb)
     
    349369}
    350370
    351 /** TODO comment
    352  *
     371/** Set address of block, where are extended attributes located.
     372 *
     373 * @param inode                 i-node
     374 * @param sb                    superblock
     375 * @param file_acl              block address
    353376 */
    354377void ext4_inode_set_file_acl(ext4_inode_t *inode, ext4_superblock_t *sb,
Note: See TracChangeset for help on using the changeset viewer.