Lines Matching refs:dir
32 struct ext2_dir_entry *dir = NULL; in ext2fs_new_dir_block() local
46 dir = (struct ext2_dir_entry *) buf; in ext2fs_new_dir_block()
51 retval = ext2fs_set_rec_len(fs, fs->blocksize - csum_size, dir); in ext2fs_new_dir_block()
63 dir->inode = dir_ino; in ext2fs_new_dir_block()
64 ext2fs_dirent_set_name_len(dir, 1); in ext2fs_new_dir_block()
65 ext2fs_dirent_set_file_type(dir, filetype); in ext2fs_new_dir_block()
66 dir->name[0] = '.'; in ext2fs_new_dir_block()
68 dir->rec_len = EXT2_DIR_REC_LEN(1); in ext2fs_new_dir_block()
73 dir = (struct ext2_dir_entry *) (buf + dir->rec_len); in ext2fs_new_dir_block()
74 retval = ext2fs_set_rec_len(fs, rec_len, dir); in ext2fs_new_dir_block()
79 dir->inode = parent_ino; in ext2fs_new_dir_block()
80 ext2fs_dirent_set_name_len(dir, 2); in ext2fs_new_dir_block()
81 ext2fs_dirent_set_file_type(dir, filetype); in ext2fs_new_dir_block()
82 dir->name[0] = '.'; in ext2fs_new_dir_block()
83 dir->name[1] = '.'; in ext2fs_new_dir_block()
102 struct ext2_dir_entry *dir = NULL; in ext2fs_new_dir_inline_data() local
110 dir = (struct ext2_dir_entry *)((char *)iblock + in ext2fs_new_dir_inline_data()
112 dir->inode = 0; in ext2fs_new_dir_inline_data()
114 retval = ext2fs_set_rec_len(fs, rec_len, dir); in ext2fs_new_dir_inline_data()
119 retval = ext2fs_dirent_swab_out2(fs, (char *)dir, rec_len, 0); in ext2fs_new_dir_inline_data()