Home | History | Annotate | Download | only in fsck_ext2fs

Lines Matching defs:dirp

350 	struct ext2fs_direct *dirp = idesc->id_dirp;
360 if (dirp->e2d_ino != 0)
361 oldlen = EXT2FS_DIRSIZ(dirp->e2d_namlen);
364 if (fs2h16(dirp->e2d_reclen) - oldlen < newlen)
366 newent.e2d_reclen = h2fs16(fs2h16(dirp->e2d_reclen) - oldlen);
367 dirp->e2d_reclen = h2fs16(oldlen);
368 dirp = (struct ext2fs_direct *)(((char *)dirp) + oldlen);
369 dirp->e2d_ino = h2fs32(idesc->id_parent); /* ino to be entered is in id_parent */
370 dirp->e2d_reclen = newent.e2d_reclen;
371 dirp->e2d_namlen = newent.e2d_namlen;
372 dirp->e2d_type = newent.e2d_type;
373 memcpy(dirp->e2d_name, idesc->id_name, (size_t)(dirp->e2d_namlen));
380 struct ext2fs_direct *dirp = idesc->id_dirp;
381 u_int16_t namlen = dirp->e2d_namlen;
384 strncmp(dirp->e2d_name, idesc->id_name, (int)namlen))
386 dirp->e2d_ino = h2fs32(idesc->id_parent);
389 dirp->e2d_type = inot2ext2dt(typemap[idesc->id_parent]);
391 dirp->e2d_type = 0;
620 struct ext2fs_dirtemplate *dirp;
637 dirp = &dirhead;
638 dirp->dot_ino = h2fs32(ino);
639 dirp->dotdot_ino = h2fs32(parent);
646 memcpy(bp->b_un.b_buf, dirp, sizeof(struct ext2fs_dirtemplate));