Lines Matching refs:rec_len
130 unsigned int offset, dir_offset, rec_len, name_len; in fill_dir_block() local
172 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in fill_dir_block()
174 if (((dir_offset + rec_len) > fs->blocksize) || in fill_dir_block()
175 (rec_len < min_rec) || in fill_dir_block()
176 ((rec_len % 4) != 0) || in fill_dir_block()
177 (name_len + min_rec > rec_len)) { in fill_dir_block()
181 dir_offset += rec_len; in fill_dir_block()
474 unsigned int rec_len, prev_rec_len, left, slack, offset; in copy_dir_entries() local
507 rec_len = 0; in copy_dir_entries()
517 rec_len = ext2fs_dir_rec_len(ext2fs_dirent_name_len(ent->dir), in copy_dir_entries()
519 if (rec_len > left) { in copy_dir_entries()
549 retval = ext2fs_set_rec_len(fs, rec_len, dirent); in copy_dir_entries()
552 prev_rec_len = rec_len; in copy_dir_entries()
560 offset += rec_len; in copy_dir_entries()
561 left -= rec_len; in copy_dir_entries()
573 retval = ext2fs_set_rec_len(fs, rec_len + left, dirent); in copy_dir_entries()
602 dir->rec_len = 12; in set_root_node()
609 dir->rec_len = fs->blocksize - 12; in set_root_node()