Lines Matching refs:rec_len
29 unsigned int *rec_len) in ext2fs_get_rec_len() argument
31 unsigned int len = dirent->rec_len; in ext2fs_get_rec_len()
34 *rec_len = len; in ext2fs_get_rec_len()
36 *rec_len = fs->blocksize; in ext2fs_get_rec_len()
38 *rec_len = (len & 65532) | ((len & 3) << 16); in ext2fs_get_rec_len()
49 dirent->rec_len = len; in ext2fs_set_rec_len()
54 dirent->rec_len = EXT4_MAX_REC_LEN; in ext2fs_set_rec_len()
56 dirent->rec_len = 0; in ext2fs_set_rec_len()
58 dirent->rec_len = (len & 65532) | ((len >> 16) & 3); in ext2fs_set_rec_len()
75 unsigned int rec_len; in ext2fs_validate_entry() local
81 if (ext2fs_get_rec_len(fs, dirent, &rec_len)) in ext2fs_validate_entry()
83 offset += rec_len; in ext2fs_validate_entry()
84 if ((rec_len < 8) || in ext2fs_validate_entry()
85 ((rec_len % 4) != 0) || in ext2fs_validate_entry()
86 ((ext2fs_dirent_name_len(dirent)+8) > (int) rec_len)) in ext2fs_validate_entry()
196 unsigned int rec_len, size, buflen; in ext2fs_process_dir_block() local
226 if (ext2fs_get_rec_len(fs, dirent, &rec_len)) in ext2fs_process_dir_block()
228 if (((offset + rec_len) > buflen) || in ext2fs_process_dir_block()
229 (rec_len < 8) || in ext2fs_process_dir_block()
230 ((rec_len % 4) != 0) || in ext2fs_process_dir_block()
231 ((ext2fs_dirent_name_len(dirent)+8) > (int) rec_len)) { in ext2fs_process_dir_block()
243 (dirent->rec_len == csum_size) && in ext2fs_process_dir_block()
262 if (ext2fs_get_rec_len(fs, dirent, &rec_len)) in ext2fs_process_dir_block()
272 next_real_entry += rec_len; in ext2fs_process_dir_block()
277 if (rec_len != size) { in ext2fs_process_dir_block()
280 final_offset = offset + rec_len; in ext2fs_process_dir_block()
290 offset += rec_len; in ext2fs_process_dir_block()