Lines Matching defs:dirp
592 static int is_entry_dir(int fd, struct ext4_dir_entry_2 *dirp, int pass)
597 if (dirp->file_type == EXT4_FT_DIR) {
599 } else if (dirp->file_type == EXT4_FT_UNKNOWN) {
607 if ((pass == UPDATE_INODE_NUMS) && !(dirp->inode & 0x80000000)) {
610 read_inode(fd, (dirp->inode & 0x7fffffff), &inode);
624 struct ext4_dir_entry_2 *dirp, *prev_dirp = 0;
675 dirp = (struct ext4_dir_entry_2 *)dirbuf;
676 while (dirp < (struct ext4_dir_entry_2 *)(dirbuf + dirsize)) {
678 leftover_space = (char *)(dirbuf + dirsize) - (char *)dirp;
693 if (dirp->inode == 0) {
698 strncpy(name, dirp->name, dirp->name_len);
699 name[dirp->name_len]='\0';
710 is_dir = is_entry_dir(fd, dirp, mode);
713 ((mode == UPDATE_INODE_NUMS) && (dirp->inode & 0x80000000))) ) {
715 read_inode(fd, dirp->inode & 0x7fffffff, &tmp_inode);
719 dirp->inode & 0x7fffffff, name);
722 printf("inode %d %s use extents\n", dirp->inode & 0x7fffffff,
751 dirp->inode |= 0x80000000;
753 if (dirp->inode & 0x80000000) {
754 dirp->inode = compute_new_inum(dirp->inode & 0x7fffffff);
762 /* Point dirp at the next entry */
763 prev_dirp = dirp;
764 dirp = (struct ext4_dir_entry_2*)((char *)dirp + dirp->rec_len);