Lines Matching refs:ino
66 static void freedir(ino_t ino, ino_t parent);
69 static int lftempname(char *bufp, ino_t ino);
321 printf("Bad dir: ino %d reclen %d namlen %d type %d name %s\n",
328 direrror(ino_t ino, const char *errmesg)
331 fileerror(ino, ino, errmesg);
335 fileerror(ino_t cwd, ino_t ino, const char *errmesg)
342 if (ino < UFS_ROOTINO || ino > maxino) {
343 pfatal("out-of-range inode number %ju", (uintmax_t)ino);
346 ginode(ino, &ip);
350 getpathname(pathbuf, cwd, ino);
421 printf("adjrefcnt ino %ld amt %lld\n",
451 dirp->d_ino = idesc->id_parent; /* ino to be entered is in id_parent */
630 makeentry(ino_t parent, ino_t ino, const char *name)
639 ino < UFS_ROOTINO || ino >= maxino)
645 idesc.id_parent = ino; /* this is the inode to enter */
795 ino_t ino;
803 ino = allocino(request, IFDIR|mode);
804 if (ino == 0)
807 dirp->dot_ino = ino;
809 ginode(ino, &ip);
813 freeino(ino);
825 if (ino == UFS_ROOTINO) {
826 inoinfo(ino)->ino_linkcnt = DIP(dp, di_nlink);
827 cacheino(dp, ino);
829 return(ino);
832 freeino(ino);
836 cacheino(dp, ino);
837 inp = getinoinfo(ino);
840 inoinfo(ino)->ino_state = inoinfo(parent)->ino_state;
841 if (inoinfo(ino)->ino_state == DSTATE) {
842 inoinfo(ino)->ino_linkcnt = DIP(dp, di_nlink);
851 return (ino);
858 freedir(ino_t ino, ino_t parent)
863 if (ino != parent) {
870 freeino(ino);
877 lftempname(char *bufp, ino_t ino)
888 in = ino;