Changeset 7bc4508 in mainline for uspace/lib/ext4/libext4_superblock.c
- Timestamp:
- 2011-10-18T19:58:36Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7bd2c19
- Parents:
- 12f55220
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_superblock.c
r12f55220 r7bc4508 185 185 186 186 187 uint32_t* ext4_superblock_get_hash_seed(ext4_superblock_t *sb) 188 { 189 return sb->hash_seed; 190 } 191 192 uint32_t ext4_superblock_get_flags(ext4_superblock_t *sb) 193 { 194 return uint32_t_le2host(sb->flags); 195 } 196 197 187 198 /* 188 199 * More complex superblock functions 189 200 */ 190 201 202 bool ext4_superblock_has_flag(ext4_superblock_t *sb, uint32_t flag) 203 { 204 if (ext4_superblock_get_flags(sb) & flag) { 205 return true; 206 } 207 return false; 208 } 209 191 210 int ext4_superblock_read_direct(service_id_t service_id, 192 211 ext4_superblock_t **superblock)
Note:
See TracChangeset
for help on using the changeset viewer.