Lines Matching refs:rec_len
115 unsigned int offset, dir_offset, rec_len, name_len; in fill_dir_block() local
150 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in fill_dir_block()
152 if (((dir_offset + rec_len) > fs->blocksize) || in fill_dir_block()
153 (rec_len < 8) || in fill_dir_block()
154 ((rec_len % 4) != 0) || in fill_dir_block()
155 (name_len + 8 > rec_len)) { in fill_dir_block()
159 dir_offset += rec_len; in fill_dir_block()
437 unsigned int rec_len, prev_rec_len, left, slack, offset; in copy_dir_entries() local
468 rec_len = 0; in copy_dir_entries()
478 rec_len = EXT2_DIR_REC_LEN(ext2fs_dirent_name_len(ent->dir)); in copy_dir_entries()
479 if (rec_len > left) { in copy_dir_entries()
509 retval = ext2fs_set_rec_len(fs, rec_len, dirent); in copy_dir_entries()
512 prev_rec_len = rec_len; in copy_dir_entries()
515 offset += rec_len; in copy_dir_entries()
516 left -= rec_len; in copy_dir_entries()
528 retval = ext2fs_set_rec_len(fs, rec_len + left, dirent); in copy_dir_entries()
556 dir->rec_len = 12; in set_root_node()
563 dir->rec_len = fs->blocksize - 12; in set_root_node()