Lines Matching refs:dirent
34 static int link_proc(struct ext2_dir_entry *dirent, in link_proc() argument
52 ls->err = ext2fs_get_rec_len(ls->fs, dirent, &curr_rec_len); in link_proc()
67 ls->err = ext2fs_set_rec_len(ls->fs, curr_rec_len, dirent); in link_proc()
83 !dirent->inode) { in link_proc()
85 ls->err = ext2fs_set_rec_len(ls->fs, curr_rec_len, dirent); in link_proc()
97 dirent->name[0] == '.' && dirent->name[1] == '.') { in link_proc()
99 ls->err = ext2fs_set_rec_len(ls->fs, curr_rec_len, dirent); in link_proc()
112 if (dirent->inode) { in link_proc()
113 min_rec_len = EXT2_DIR_REC_LEN(ext2fs_dirent_name_len(dirent)); in link_proc()
117 ls->err = ext2fs_set_rec_len(ls->fs, min_rec_len, dirent); in link_proc()
121 dirent->rec_len); in link_proc()
137 dirent->inode = ls->inode; in link_proc()
138 ext2fs_dirent_set_name_len(dirent, ls->namelen); in link_proc()
139 strncpy(dirent->name, ls->name, ls->namelen); in link_proc()
141 ext2fs_dirent_set_file_type(dirent, ls->flags & 0x7); in link_proc()