Deleted Added
full compact
pass1.c (125036) pass1.c (126345)
1/*
2 * Copyright (c) 1980, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 23 unchanged lines hidden (view full) ---

32 */
33
34#if 0
35#ifndef lint
36static const char sccsid[] = "@(#)pass1.c 8.6 (Berkeley) 4/28/95";
37#endif /* not lint */
38#endif
39#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1980, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 23 unchanged lines hidden (view full) ---

32 */
33
34#if 0
35#ifndef lint
36static const char sccsid[] = "@(#)pass1.c 8.6 (Berkeley) 4/28/95";
37#endif /* not lint */
38#endif
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/sbin/fsck_ffs/pass1.c 125036 2004-01-26 15:05:30Z cperciva $");
40__FBSDID("$FreeBSD: head/sbin/fsck_ffs/pass1.c 126345 2004-02-28 07:50:42Z scottl $");
41
42#include <sys/param.h>
43#include <sys/stat.h>
44#include <sys/sysctl.h>
45
46#include <ufs/ufs/dinode.h>
47#include <ufs/ufs/dir.h>
48#include <ufs/ffs/fs.h>

--- 53 unchanged lines hidden (view full) ---

102 else
103 inosused = sblock.fs_ipg;
104 if (got_siginfo) {
105 printf("%s: phase 1: cyl group %d of %d (%d%%)\n",
106 cdevname, c, sblock.fs_ncg,
107 c * 100 / sblock.fs_ncg);
108 got_siginfo = 0;
109 }
41
42#include <sys/param.h>
43#include <sys/stat.h>
44#include <sys/sysctl.h>
45
46#include <ufs/ufs/dinode.h>
47#include <ufs/ufs/dir.h>
48#include <ufs/ffs/fs.h>

--- 53 unchanged lines hidden (view full) ---

102 else
103 inosused = sblock.fs_ipg;
104 if (got_siginfo) {
105 printf("%s: phase 1: cyl group %d of %d (%d%%)\n",
106 cdevname, c, sblock.fs_ncg,
107 c * 100 / sblock.fs_ncg);
108 got_siginfo = 0;
109 }
110 if (got_sigalarm) {
111 setproctitle("%s p1 %d%%", cdevname,
112 c * 100 / sblock.fs_ncg);
113 got_sigalarm = 0;
114 }
110 /*
111 * If we are using soft updates, then we can trust the
112 * cylinder group inode allocation maps to tell us which
113 * inodes are allocated. We will scan the used inode map
114 * to find the inodes that are really in use, and then
115 * read only those inodes in from disk.
116 */
117 if (preen && usedsoftdep) {

--- 360 unchanged lines hidden ---
115 /*
116 * If we are using soft updates, then we can trust the
117 * cylinder group inode allocation maps to tell us which
118 * inodes are allocated. We will scan the used inode map
119 * to find the inodes that are really in use, and then
120 * read only those inodes in from disk.
121 */
122 if (preen && usedsoftdep) {

--- 360 unchanged lines hidden ---