Deleted Added
full compact
pass1b.c (37000) pass1b.c (41474)
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

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

27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
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

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

27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static const char sccsid[] = "@(#)pass1b.c 8.4 (Berkeley) 4/28/95";
35static const char sccsid[] = "@(#)pass1b.c 8.4 (Berkeley) 4/28/95";
37#endif
38static const char rcsid[] =
39 "$Id$";
40#endif /* not lint */
41
42#include <sys/param.h>
36#endif /* not lint */
37
38#include <sys/param.h>
39#include <sys/time.h>
43
44#include <ufs/ufs/dinode.h>
45#include <ufs/ffs/fs.h>
46
47#include <string.h>
48
49#include "fsck.h"
50

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

67 for (c = 0; c < sblock.fs_ncg; c++) {
68 for (i = 0; i < sblock.fs_ipg; i++, inumber++) {
69 if (inumber < ROOTINO)
70 continue;
71 dp = ginode(inumber);
72 if (dp == NULL)
73 continue;
74 idesc.id_number = inumber;
40
41#include <ufs/ufs/dinode.h>
42#include <ufs/ffs/fs.h>
43
44#include <string.h>
45
46#include "fsck.h"
47

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

64 for (c = 0; c < sblock.fs_ncg; c++) {
65 for (i = 0; i < sblock.fs_ipg; i++, inumber++) {
66 if (inumber < ROOTINO)
67 continue;
68 dp = ginode(inumber);
69 if (dp == NULL)
70 continue;
71 idesc.id_number = inumber;
75 if (statemap[inumber] != USTATE &&
72 if (inoinfo(inumber)->ino_state != USTATE &&
76 (ckinode(dp, &idesc) & STOP))
77 return;
78 }
79 }
80}
81
82static int
83pass1bcheck(idesc)

--- 24 unchanged lines hidden ---
73 (ckinode(dp, &idesc) & STOP))
74 return;
75 }
76 }
77}
78
79static int
80pass1bcheck(idesc)

--- 24 unchanged lines hidden ---