Changeset 2add9ec in mainline
- Timestamp:
- 2012-05-06T08:15:01Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3169f3b0
- Parents:
- 2226cc3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_inode.c
r2226cc3 r2add9ec 136 136 } 137 137 138 /** Get time, when i-node was last accessed. 139 * 140 * @param inode i-node 141 * @return time of the last access (POSIX) 142 */ 138 143 uint32_t ext4_inode_get_access_time(ext4_inode_t *inode) 139 144 { … … 141 146 } 142 147 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) 145 152 */ 146 153 void ext4_inode_set_access_time(ext4_inode_t *inode, uint32_t time) … … 237 244 } 238 245 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 241 251 */ 242 252 uint64_t ext4_inode_get_blocks_count(ext4_superblock_t *sb, ext4_inode_t *inode) … … 258 268 return uint32_t_le2host(inode->blocks_count_lo); 259 269 } 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 266 278 */ 267 279 int ext4_inode_set_blocks_count(ext4_superblock_t *sb, ext4_inode_t *inode, … … 279 291 } 280 292 293 // Check if there can be used huge files (many blocks) 281 294 if (!ext4_superblock_has_feature_read_only(sb, EXT4_FEATURE_RO_COMPAT_HUGE_FILE)) { 282 295 return EINVAL; … … 320 333 } 321 334 322 /** TODO comment 323 * 335 /** Get file generation (used by NFS). 336 * 337 * @param inode i-node 338 * @return file generation 324 339 */ 325 340 uint32_t ext4_inode_get_generation(ext4_inode_t *inode) … … 328 343 } 329 344 330 /** TODO comment 331 * 345 /** Set file generation (used by NFS). 346 * 347 * @param inode i-node 348 * @param generation file generation 332 349 */ 333 350 void ext4_inode_set_generation(ext4_inode_t *inode, uint32_t generation) … … 336 353 } 337 354 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 340 360 */ 341 361 uint64_t ext4_inode_get_file_acl(ext4_inode_t *inode, ext4_superblock_t *sb) … … 349 369 } 350 370 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 353 376 */ 354 377 void ext4_inode_set_file_acl(ext4_inode_t *inode, ext4_superblock_t *sb,
Note:
See TracChangeset
for help on using the changeset viewer.