Deleted Added
full compact
pass3.c (70050) pass3.c (74556)
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

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

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static const char sccsid[] = "@(#)pass3.c 8.2 (Berkeley) 4/27/95";
37#endif
38static const char rcsid[] =
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

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

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static const char sccsid[] = "@(#)pass3.c 8.2 (Berkeley) 4/27/95";
37#endif
38static const char rcsid[] =
39 "$FreeBSD: head/sbin/fsck_ffs/pass3.c 70050 2000-12-15 14:23:55Z iedowse $";
39 "$FreeBSD: head/sbin/fsck_ffs/pass3.c 74556 2001-03-21 09:48:03Z mckusick $";
40#endif /* not lint */
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

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

73 if (state == DCLEAR)
74 continue;
75 /*
76 * If we are running with soft updates and we come
77 * across unreferenced directories, we just leave
78 * them in DSTATE which will cause them to be pitched
79 * in pass 4.
80 */
40#endif /* not lint */
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

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

73 if (state == DCLEAR)
74 continue;
75 /*
76 * If we are running with soft updates and we come
77 * across unreferenced directories, we just leave
78 * them in DSTATE which will cause them to be pitched
79 * in pass 4.
80 */
81 if (preen && resolved && usedsoftdep && state == DSTATE) {
81 if ((preen || bkgrdflag) &&
82 resolved && usedsoftdep && state == DSTATE) {
82 if (inp->i_dotdot >= ROOTINO)
83 inoinfo(inp->i_dotdot)->ino_linkcnt++;
84 continue;
85 }
86 for (loopcnt = 0; ; loopcnt++) {
87 orphan = inp->i_number;
88 if (inp->i_parent == 0 ||
89 inoinfo(inp->i_parent)->ino_state != DSTATE ||

--- 35 unchanged lines hidden ---
83 if (inp->i_dotdot >= ROOTINO)
84 inoinfo(inp->i_dotdot)->ino_linkcnt++;
85 continue;
86 }
87 for (loopcnt = 0; ; loopcnt++) {
88 orphan = inp->i_number;
89 if (inp->i_parent == 0 ||
90 inoinfo(inp->i_parent)->ino_state != DSTATE ||

--- 35 unchanged lines hidden ---