Changeset 8158db7 in mainline for uspace/lib/ext4/libext4_directory.c
- Timestamp:
- 2011-10-19T11:44:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 246a5af
- Parents:
- 7bd2c19
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_directory.c
r7bd2c19 r8158db7 246 246 247 247 int ext4_directory_dx_find_entry(ext4_directory_iterator_t *it, 248 ext4_filesystem_t *fs, ext4_inode_ref_t *inode_ref, const char *name)248 ext4_filesystem_t *fs, ext4_inode_ref_t *inode_ref, size_t len, const char *name) 249 249 { 250 250 int rc; … … 253 253 ext4_directory_dx_root_t *root; 254 254 uint32_t hash; 255 ext4_ directory_dx_hash_info_t hinfo;255 ext4_hash_info_t hinfo; 256 256 257 257 // get direct block 0 (index root) … … 315 315 316 316 hinfo.hash_version = ext4_directory_dx_root_info_get_hash_version(&root->info); 317 if ((hinfo.hash_version <= EXT4_ DIRECTORY_DX_HASH_TEA)317 if ((hinfo.hash_version <= EXT4_HASH_VERSION_TEA) 318 318 && (ext4_superblock_has_flag(fs->superblock, EXT4_SUPERBLOCK_FLAGS_UNSIGNED_HASH))) { 319 319 // 3 is magic from ext4 linux implementation … … 324 324 hinfo.hash = 0; 325 325 if (name) { 326 ext4_ directory_hash(&hinfo, name);326 ext4_hash_string(&hinfo, len, name); 327 327 } 328 328 … … 387 387 } 388 388 389 void ext4_directory_hash(ext4_directory_dx_hash_info_t *hinfo, const char* name)390 {391 // TODO392 }393 389 394 390 /**
Note:
See TracChangeset
for help on using the changeset viewer.