Lines Matching refs:rec_len
91 unsigned int offset, dir_offset, rec_len; in fill_dir_block() local
120 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in fill_dir_block()
121 if (((dir_offset + rec_len) > fs->blocksize) || in fill_dir_block()
122 (rec_len < 8) || in fill_dir_block()
123 ((rec_len % 4) != 0) || in fill_dir_block()
124 (((dirent->name_len & 0xFF)+8U) > rec_len)) { in fill_dir_block()
128 dir_offset += rec_len; in fill_dir_block()
406 unsigned int rec_len, prev_rec_len, left, slack, offset; in copy_dir_entries() local
432 rec_len = 0; in copy_dir_entries()
442 rec_len = EXT2_DIR_REC_LEN(ent->dir->name_len & 0xFF); in copy_dir_entries()
443 if (rec_len > left) { in copy_dir_entries()
465 retval = ext2fs_set_rec_len(fs, rec_len, dirent); in copy_dir_entries()
468 prev_rec_len = rec_len; in copy_dir_entries()
470 offset += rec_len; in copy_dir_entries()
471 left -= rec_len; in copy_dir_entries()
483 retval = ext2fs_set_rec_len(fs, rec_len + left, dirent); in copy_dir_entries()
505 dir->rec_len = 12; in set_root_node()
511 dir->rec_len = fs->blocksize - 12; in set_root_node()