• Home
  • Raw
  • Download

Lines Matching refs:dirent

113 	struct ext2_dir_entry 	*dirent;  in fill_dir_block()  local
130 dirent = (struct ext2_dir_entry *) dir; in fill_dir_block()
131 (void) ext2fs_set_rec_len(fs, fs->blocksize, dirent); in fill_dir_block()
149 dirent = (struct ext2_dir_entry *) (dir + dir_offset); in fill_dir_block()
150 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in fill_dir_block()
151 name_len = ext2fs_dirent_name_len(dirent); in fill_dir_block()
160 if (dirent->inode == 0) in fill_dir_block()
163 (dirent->name[0] == '.')) in fill_dir_block()
166 (dirent->name[0] == '.') && (dirent->name[1] == '.')) { in fill_dir_block()
167 fd->parent = dirent->inode; in fill_dir_block()
181 ent->dir = dirent; in fill_dir_block()
183 ent->ino = dirent->inode; in fill_dir_block()
187 fd->err = ext2fs_dirhash(hash_alg, dirent->name, in fill_dir_block()
392 pctx.dirent = ent->dir; in duplicate_search_and_fix()
436 struct ext2_dir_entry *dirent; in copy_dir_entries() local
466 dirent = (struct ext2_dir_entry *) block_start; in copy_dir_entries()
482 retval = ext2fs_set_rec_len(fs, left, dirent); in copy_dir_entries()
497 dirent = (struct ext2_dir_entry *) (block_start + offset); in copy_dir_entries()
504 dirent->inode = ent->dir->inode; in copy_dir_entries()
505 ext2fs_dirent_set_name_len(dirent, in copy_dir_entries()
507 ext2fs_dirent_set_file_type(dirent, in copy_dir_entries()
509 retval = ext2fs_set_rec_len(fs, rec_len, dirent); in copy_dir_entries()
513 memcpy(dirent->name, ent->dir->name, in copy_dir_entries()
514 ext2fs_dirent_name_len(dirent)); in copy_dir_entries()
519 retval = ext2fs_set_rec_len(fs, prev_rec_len, dirent); in copy_dir_entries()
528 retval = ext2fs_set_rec_len(fs, rec_len + left, dirent); in copy_dir_entries()