Changeset 343ccfd in mainline for uspace/lib/ext4/libext4_inode.c
- Timestamp:
- 2011-11-20T12:56:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ebeaaa06
- Parents:
- fe27eb4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_inode.c
rfe27eb4 r343ccfd 236 236 } 237 237 238 uint64_t ext4_get_inode_file_acl(ext4_inode_t *inode, ext4_superblock_t *sb) 239 { 240 if (ext4_superblock_get_creator_os(sb) == EXT4_SUPERBLOCK_OS_LINUX) { 241 return ((uint32_t)uint16_t_le2host(inode->osd2.linux2.file_acl_high)) << 16 | 242 (uint32_t_le2host(inode->file_acl_lo)); 243 } 244 245 return uint32_t_le2host(inode->file_acl_lo); 246 } 247 248 void ext4_set_inode_file_acl(ext4_inode_t *inode, ext4_superblock_t *sb, 249 uint64_t file_acl) 250 { 251 inode->file_acl_lo = host2uint32_t_le((file_acl << 32) >> 32); 252 253 if (ext4_superblock_get_creator_os(sb) == EXT4_SUPERBLOCK_OS_LINUX) { 254 inode->osd2.linux2.file_acl_high = host2uint16_t_le(file_acl >> 32); 255 } 256 } 257 238 258 /***********************************************************************/ 239 259
Note:
See TracChangeset
for help on using the changeset viewer.