• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sbin/fsck_ffs/

Lines Matching refs:ino

208 ino_lookup(ino_t ino, int creat)
214 sc = cg_lookup(ino_to_cg(fs, ino));
215 if (sc->sc_lastino && sc->sc_lastino->si_ino == ino)
217 hd = &sc->sc_inohash[HASH(ino)];
219 if (sino->si_ino == ino)
225 sino->si_ino = ino;
279 blk_equals(struct jblkrec *brec, ino_t ino, ufs_lbn_t lbn, ufs2_daddr_t start,
283 if (brec->jb_ino != ino || brec->jb_lbn != lbn)
310 blk_freemask(ufs2_daddr_t blk, ino_t ino, ufs_lbn_t lbn, int frags)
339 if (blk_equals(brec, ino, lbn, blk, frags) == 1)
362 blk_isindir(ufs2_daddr_t blk, ino_t ino, ufs_lbn_t lbn)
373 if (blk_equals(brec, ino, lbn, blk, fs->fs_frag))
384 ino_free(ino_t ino, int mode)
391 cg = ino_to_cg(fs, ino);
392 ino = ino % fs->fs_ipg;
400 if (isclr(inosused, ino))
403 clrbit(inosused, ino);
404 if (ino < cgp->cg_irotor)
405 cgp->cg_irotor = ino;
479 blk_isat(ino_t ino, ufs_lbn_t lbn, ufs2_daddr_t blk, int *frags)
485 ginode(ino, &ip);
491 nblk = ino_blkatoff(dp, ino, lbn, frags, NULL);
583 printf("ino %ju absent from %ju due to offset %jd"
615 err_suj("Corrupt directory block in dir ino %ju\n",
620 printf("ino %ju not found in %ju, lbn %jd, dpoff %d\n",
640 printf("ino %ju doesn't match dirent ino %ju in parent %ju\n",
654 indir_visit(ino_t ino, ufs_lbn_t lbn, ufs2_daddr_t blk, uint64_t *frags,
675 if ((flags & VISIT_ROOT) == 0 && blk_isindir(blk, ino, lbn) == 0) {
677 printf("blk %jd ino %ju lbn %jd(%d) is not indir.\n",
678 blk, (uintmax_t)ino, lbn, level);
693 visitor(ino, nlbn, nblk, fs->fs_frag);
696 indir_visit(ino, nlbn, nblk, frags, visitor, flags);
703 visitor(ino, lbn, blk, fs->fs_frag);
715 ino_visit(union dinode *dp, ino_t ino, ino_visitor visitor, int flags)
737 visitor(ino, -1 - i, dp->dp2.di_extb[i], frags);
750 visitor(ino, i, DIP(dp, di_db[i]), frags);
763 indir_visit(ino, -lbn - i, DIP(dp, di_ib[i]), &fragcnt, visitor,
775 null_visit(ino_t ino, ufs_lbn_t lbn, ufs2_daddr_t blk, int frags)
796 ino_t ino;
798 ino = sino->si_ino;
799 ginode(ino, &ip);
813 frags = ino_visit(dp, ino, null_visit, VISIT_INDIR | VISIT_EXT);
827 ino_trunc(ino, isize);
836 printf("ino %ju adjusting block count from %jd to %jd\n",
837 (uintmax_t)ino, DIP(dp, di_blocks), blocks);
844 blk_free_visit(ino_t ino, ufs_lbn_t lbn, ufs2_daddr_t blk, int frags)
847 blk_free(blk, blk_freemask(blk, ino, lbn, frags), frags);
851 * Free a block or tree of blocks that was previously rooted in ino at
856 blk_free_lbn(ufs2_daddr_t blk, ino_t ino, ufs_lbn_t lbn, int frags, int follow)
861 mask = blk_freemask(blk, ino, lbn, frags);
864 indir_visit(ino, lbn, blk, &resid, blk_free_visit, VISIT_INDIR);
911 err_suj("ino_remref: ino %ld mode 0%o about to go "
937 ino_free_children(ino_t ino, ufs_lbn_t lbn, ufs2_daddr_t blk, int frags)
948 sino = ino_lookup(ino, 0);
969 printf("Directory %ju removing ino %ju name %s\n",
970 (uintmax_t)ino, (uintmax_t)dp->d_ino, dp->d_name);
972 ino_remref(ino, dp->d_ino, diroff, isdotdot);
982 ino_reclaim(struct inode *ip, ino_t ino, int mode)
988 if (ino == UFS_ROOTINO)
991 printf("Truncating and freeing ino %ju, nlink %d, mode %o\n",
992 (uintmax_t)ino, DIP(dp, di_nlink), DIP(dp, di_mode));
996 ino_visit(dp, ino, ino_free_children, 0);
998 ino_visit(dp, ino, blk_free_visit, VISIT_EXT | VISIT_INDIR);
1007 ino_free(ino, mode);
1015 ino_decr(ino_t ino)
1023 ginode(ino, &ip);
1028 err_suj("Inode %d link count %d invalid\n", ino, nlink);
1030 err_suj("Inode %d has a link of %d with 0 mode\n", ino, nlink);
1038 printf("ino %ju not enough links to live %d < %d\n",
1039 (uintmax_t)ino, nlink, reqlink);
1040 ino_reclaim(&ip, ino, mode);
1066 ino_t ino;
1069 ino = sino->si_ino;
1080 if (ino_isat(rrec->jr_parent, rrec->jr_diroff, ino,
1083 ino_clrat(rrec->jr_parent, rrec->jr_diroff, ino);
1087 errx(1, "Directory %ju name not found", (uintmax_t)ino);
1104 ino_setskip(stmp, ino);
1108 ginode(ino, &ip);
1112 err_suj("ino %ju nlink manipulation error, new %ju, old %d\n",
1113 (uintmax_t)ino, (uintmax_t)nlink, DIP(dp, di_nlink));
1115 printf("Adjusting ino %ju, nlink %ju, old link %d lastmode %o\n",
1116 (uintmax_t)ino, (uintmax_t)nlink, DIP(dp, di_nlink),
1120 printf("ino %ju, zero inode freeing bitmap\n",
1121 (uintmax_t)ino);
1122 ino_free(ino, sino->si_mode);
1128 printf("ino %ju, mode %o != %o\n",
1129 (uintmax_t)ino, mode, sino->si_mode);
1137 printf("ino %ju not enough links to live %ju < %ju\n",
1138 (uintmax_t)ino, (uintmax_t)nlink,
1140 ino_reclaim(&ip, ino, mode);
1147 printf("ino %ju, link matches, skipping.\n",
1148 (uintmax_t)ino);
1162 indir_trunc(ino_t ino, ufs_lbn_t lbn, ufs2_daddr_t blk, ufs_lbn_t lastlbn,
1199 indir_trunc(ino, nlbn, nblk, lastlbn, dp);
1225 ino_trunc(ino_t ino, off_t size)
1242 ginode(ino, &ip);
1247 printf("Truncating ino %ju, mode %o to size %jd from size %jd\n",
1248 (uintmax_t)ino, mode, size, cursize);
1263 err_suj("Partial truncation of ino %ju snapshot file\n",
1264 (uintmax_t)ino);
1286 indir_trunc(ino, -lbn - i, DIP(dp, di_ib[i]), lastlbn, dp);
1301 totalfrags = ino_visit(dp, ino, null_visit, VISIT_INDIR | VISIT_EXT);
1313 err_suj("Bad blk at ino %ju lbn %jd\n",
1314 (uintmax_t)ino, visitlbn);
1336 bn = ino_blkatoff(dp, ino, visitlbn, &frags, NULL);
1338 err_suj("Block missing from ino %ju at lbn %jd\n",
1339 (uintmax_t)ino, visitlbn);
1366 ino_t ino;
1373 ino = sino->si_ino;
1387 printf("jrefrec: op %d ino %ju, nlink %ju, parent %ju, "
1410 "ino %ju nlink %ju newlinks %ju removes %ju dotlinks %ju\n",
1411 (uintmax_t)ino, (uintmax_t)nlink, (uintmax_t)newlinks,
1453 printf("op %d blk %jd ino %ju lbn %jd frags %d isat %d (%d)\n",
1590 ino_t ino;
1592 ino = fs->fs_sujfree;
1594 while (ino != 0) {
1595 ginode(ino, &ip);
1606 printf("Freeing unlinked ino %ju mode %o\n",
1607 (uintmax_t)ino, mode);
1608 ino_reclaim(&ip, ino, mode);
1610 printf("Skipping ino %ju mode %o with link %d\n",
1611 (uintmax_t)ino, mode, DIP(dp, di_nlink));
1612 ino = inon;
1631 printf("ino move: ino %ju, parent %ju, "
1637 printf("ino ref: op %d, ino %ju, nlink %ju, "
1853 "ino %ju lbn %jd\n",
1904 printf("ino_build_trunc: op %d ino %ju, size %jd\n",
2198 suj_add_block(ino_t ino, ufs_lbn_t lbn, ufs2_daddr_t blk, int frags)