pass4.c revision 355d6bb5e62a215a9bcf820ac85c1fc62bed2f3f
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Use is subject to license terms.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin/* All Rights Reserved */
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Copyright (c) 1980, 1986, 1990 The Regents of the University of California.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Redistribution and use in source and binary forms are permitted
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * provided that: (1) source distributions retain this entire copyright
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * notice and comment, and (2) distributions including binaries display
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * the following acknowledgement: ``This product includes software
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * developed by the University of California, Berkeley and its contributors''
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * in the documentation or other materials provided with the distribution
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * and in all advertising materials mentioning features or use of this
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * software. Neither the name of the University nor the names of its
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * contributors may be used to endorse or promote products derived
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * from this software without specific prior written permission.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#pragma ident "%Z%%M% %I% %E% SMI"
pass4(void)
int n, was_dir;
int need_rescan;
int scan_pass = 0;
if (debug)
need_rescan = 0;
| INZLINK)) {
case FZLINK:
case DZLINK:
if (was_dir &&
case FSTATE:
case DFOUND:
case SSTATE:
if (was_dir &&
case DSTATE:
case DCLEAR:
case FCLEAR:
case SCLEAR:
case USTATE:
} while (need_rescan);
int cylno;
int cg_fatal;
if (debug)
(void) printf(
return (KEEPON);
DB_DECR)) {
if (debug)
cg_frag);
n_blks--;
if (cg_fatal)
cgdirty();
return (res);