* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)pass1b.c 5.1 (Berkeley) %G%";
static struct dups
*duphead
;
bzero((char *)&idesc
, sizeof(struct inodesc
));
idesc
.id_func
= pass1bcheck
;
for (c
= 0; c
< sblock
.fs_ncg
; c
++) {
for (i
= 0; i
< sblock
.fs_ipg
; i
++, inumber
++) {
idesc
.id_number
= inumber
;
if (statemap
[inumber
] != USTATE
&&
(ckinode(dp
, &idesc
) & STOP
))
register struct inodesc
*idesc
;
register struct dups
*dlp
;
int nfrags
, res
= KEEPON
;
daddr_t blkno
= idesc
->id_blkno
;
for (nfrags
= idesc
->id_numfrags
; nfrags
> 0; blkno
++, nfrags
--) {
for (dlp
= duphead
; dlp
; dlp
= dlp
->next
) {
blkerr(idesc
->id_number
, "DUP", blkno
);
if (muldup
== 0 || duphead
== muldup
->next
)