Deleted Added
full compact
pass3.c (114589) pass3.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[] = "@(#)pass3.c 8.2 (Berkeley) 4/27/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[] = "@(#)pass3.c 8.2 (Berkeley) 4/27/95";
37#endif /* not lint */
38#endif
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/sbin/fsck_ffs/pass3.c 114589 2003-05-03 18:41:59Z obrien $");
40__FBSDID("$FreeBSD: head/sbin/fsck_ffs/pass3.c 126345 2004-02-28 07:50:42Z scottl $");
41
42#include <sys/param.h>
43
44#include <ufs/ufs/dinode.h>
45#include <ufs/ufs/dir.h>
46#include <ufs/ffs/fs.h>
47
48#include <string.h>

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

60
61 for (inpindex = inplast - 1; inpindex >= 0; inpindex--) {
62 if (got_siginfo) {
63 printf("%s: phase 3: dir %d of %d (%d%%)\n", cdevname,
64 (int)(inplast - inpindex - 1), (int)inplast,
65 (int)((inplast - inpindex - 1) * 100 / inplast));
66 got_siginfo = 0;
67 }
41
42#include <sys/param.h>
43
44#include <ufs/ufs/dinode.h>
45#include <ufs/ufs/dir.h>
46#include <ufs/ffs/fs.h>
47
48#include <string.h>

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

60
61 for (inpindex = inplast - 1; inpindex >= 0; inpindex--) {
62 if (got_siginfo) {
63 printf("%s: phase 3: dir %d of %d (%d%%)\n", cdevname,
64 (int)(inplast - inpindex - 1), (int)inplast,
65 (int)((inplast - inpindex - 1) * 100 / inplast));
66 got_siginfo = 0;
67 }
68 if (got_sigalarm) {
69 setproctitle("%s p3 %d%%", cdevname,
70 (int)((inplast - inpindex - 1) * 100 / inplast));
71 got_sigalarm = 0;
72 }
68 inp = inpsort[inpindex];
69 state = inoinfo(inp->i_number)->ino_state;
70 if (inp->i_number == ROOTINO ||
71 (inp->i_parent != 0 && state != DSTATE))
72 continue;
73 if (state == DCLEAR)
74 continue;
75 /*

--- 51 unchanged lines hidden ---
73 inp = inpsort[inpindex];
74 state = inoinfo(inp->i_number)->ino_state;
75 if (inp->i_number == ROOTINO ||
76 (inp->i_parent != 0 && state != DSTATE))
77 continue;
78 if (state == DCLEAR)
79 continue;
80 /*

--- 51 unchanged lines hidden ---