Changeset 06d85e5 in mainline for uspace/lib/ext4/libext4_inode.c
- Timestamp:
- 2012-06-18T11:09:34Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2616a75b
- Parents:
- 9a487cc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_inode.c
r9a487cc r06d85e5 266 266 if (ext4_superblock_has_feature_read_only(sb, EXT4_FEATURE_RO_COMPAT_HUGE_FILE)) { 267 267 268 / / 48-bit field268 /* 48-bit field */ 269 269 uint64_t count = ((uint64_t)uint16_t_le2host(inode->osd2.linux2.blocks_high)) << 32 | 270 270 uint32_t_le2host(inode->blocks_count_lo); … … 292 292 uint64_t count) 293 293 { 294 / / 32-bit maximum294 /* 32-bit maximum */ 295 295 uint64_t max = 0; 296 296 max = ~max >> 32; … … 303 303 } 304 304 305 / / Check if there can be used huge files (many blocks)305 /* Check if there can be used huge files (many blocks) */ 306 306 if (!ext4_superblock_has_feature_read_only(sb, EXT4_FEATURE_RO_COMPAT_HUGE_FILE)) { 307 307 return EINVAL; 308 308 } 309 309 310 / / 48-bit maximum310 /* 48-bit maximum */ 311 311 max = 0; 312 312 max = ~max >> 16;
Note:
See TracChangeset
for help on using the changeset viewer.