Lines Matching +full:ufs +full:- +full:wrapper
30 * In-core structures:
68 * pre-combined through the {D,F,S}ZLINK, DFOUND, and
72 * Three state-test macros are provided: S_IS_DUNFOUND(),
93 * Each entry is initialized to the di_link from the on-disk
99 * an extra reference. This is a can't-happen, except in the
101 * to lost+found. An exact match between lncntp[] and the on-disk
143 #define ALL_no 'n' /* auto-answer interactive questions `no' */
144 #define ALL_NO 'N' /* auto-answer interactive questions `no' */
145 #define UFS_OPTS 'o' /* ufs-specific options, see subopts[] */
147 #define ALL_yes 'y' /* auto-answer interactive questions `yes' */
148 #define ALL_YES 'Y' /* auto-answer interactive questions `yes' */
152 #define PREEN 0 /* non-interactive mode (parent is parallel) */
166 * Filesystems that are `magical' - if they exist in vfstab,
242 * ufs specific options. in main()
289 (void) printf("fsck -F ufs "); in main()
310 argc -= optind; in main()
339 * wrapper, we were only given one filesystem to check, so the in main()
340 * multi-fs case implies being run manually; that means the in main()
344 while (argc-- > 0) { in main()
361 * exit, so ret does not actually need to be pre-initialized. Lint
368 long ret = -1; in argtol()
374 (void) fprintf(stderr, "-%c flag requires a %s\n", flag, req); in argtol()
378 (void) fprintf(stderr, "-%c %s value out of range\n", in argtol()
401 mountfd = -1; in checkfilesys()
448 (void) printf("** Phase 1 - Check Blocks and Sizes\n"); in checkfilesys()
457 pfatal("INTERNAL ERROR: dups with -o p"); in checkfilesys()
458 (void) printf("** Phase 1b - Rescan For More DUPS\n"); in checkfilesys()
466 (void) printf("** Phase 2 - Check Pathnames\n"); in checkfilesys()
473 (void) printf("** Phase 3a - Check Connectivity\n"); in checkfilesys()
480 (void) printf("** Phase 3b - Verify Shadows/ACLs\n"); in checkfilesys()
487 (void) printf("** Phase 4 - Check Reference Counts\n"); in checkfilesys()
494 (void) printf("** Phase 5 - Check Cylinder Groups\n"); in checkfilesys()
572 files = maxino - UFSROOTINO - sblock.fs_cstotal.cs_nifree - n_files; in checkfilesys()
574 sblock.fs_ncg * (cgdmin(&sblock, 0) - cgsblock(&sblock, 0)); in checkfilesys()
575 blks += cgsblock(&sblock, 0) - cgbase(&sblock, 0); in checkfilesys()
577 blks = maxfsblock - (n_ffree + sblock.fs_frag * n_bfree) - blks; in checkfilesys()
579 countdirs = sblock.fs_cstotal.cs_ndir - countdirs; in checkfilesys()
581 countdirs, files - countdirs, in checkfilesys()
614 pwarn("%d inodes missing\n", -files); in checkfilesys()
616 pwarn("%lld blocks missing\n", -(longlong_t)blks); in checkfilesys()
695 if (fswritefd != -1) { in checkfilesys()
708 * fsck -m: does the filesystem pass cursory examination
734 "ufs fsck: sanity check failed : cannot stat %s\n", filename); in check_sanity()
779 "ufs fsck: sanity check: %s already mounted\n", filename); in check_sanity()
786 (void) fprintf(stderr, "ufs fsck: Cannot stat %s\n", in check_sanity()
799 "ufs fsck: sanity check:" in check_sanity()
806 * We know that at boot, the ufs root file system is mounted in check_sanity()
807 * read-only first. After fsck runs, it is remounted as in check_sanity()
808 * read-write. Therefore, we do not need to check for different in check_sanity()
814 "ufs fsck: sanity check: %s needs checking\n", filename); in check_sanity()
821 "ufs fsck: sanity check: %s okay\n", filename); in check_sanity()
824 "ufs fsck: sanity check: %s needs checking\n", filename); in check_sanity()
835 if (vfs->vfs_mntopts == NULL) in hasvfsopt()
837 mtab.mnt_mntopts = vfs->vfs_mntopts; in hasvfsopt()
845 "ufs usage: fsck [-F ufs] [-m] [-n] [-V] [-v] [-y] " in usage()
846 "[-o p,b=#,w,f] [special ....]\n"); in usage()