• Home
  • Raw
  • Download

Lines Matching refs:rec_len

28 			     unsigned int *rec_len)  in ext2fs_get_rec_len()  argument
30 unsigned int len = dirent->rec_len; in ext2fs_get_rec_len()
33 *rec_len = len; in ext2fs_get_rec_len()
35 *rec_len = fs->blocksize; in ext2fs_get_rec_len()
37 *rec_len = (len & 65532) | ((len & 3) << 16); in ext2fs_get_rec_len()
48 dirent->rec_len = len; in ext2fs_set_rec_len()
53 dirent->rec_len = EXT4_MAX_REC_LEN; in ext2fs_set_rec_len()
55 dirent->rec_len = 0; in ext2fs_set_rec_len()
57 dirent->rec_len = (len & 65532) | ((len >> 16) & 3); in ext2fs_set_rec_len()
74 unsigned int rec_len; in ext2fs_validate_entry() local
80 if (ext2fs_get_rec_len(fs, dirent, &rec_len)) in ext2fs_validate_entry()
82 offset += rec_len; in ext2fs_validate_entry()
83 if ((rec_len < 8) || in ext2fs_validate_entry()
84 ((rec_len % 4) != 0) || in ext2fs_validate_entry()
85 ((((unsigned) dirent->name_len & 0xFF)+8) > rec_len)) in ext2fs_validate_entry()
191 unsigned int rec_len, size; in ext2fs_process_dir_block() local
206 if (ext2fs_get_rec_len(fs, dirent, &rec_len)) in ext2fs_process_dir_block()
208 if (((offset + rec_len) > fs->blocksize) || in ext2fs_process_dir_block()
209 (rec_len < 8) || in ext2fs_process_dir_block()
210 ((rec_len % 4) != 0) || in ext2fs_process_dir_block()
211 ((((unsigned) dirent->name_len & 0xFF)+8) > rec_len)) { in ext2fs_process_dir_block()
229 if (ext2fs_get_rec_len(fs, dirent, &rec_len)) in ext2fs_process_dir_block()
239 next_real_entry += rec_len; in ext2fs_process_dir_block()
244 if (rec_len != size) { in ext2fs_process_dir_block()
247 final_offset = offset + rec_len; in ext2fs_process_dir_block()
257 offset += rec_len; in ext2fs_process_dir_block()