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 |
35static const char sccsid[] = "@(#)pass1b.c 8.4 (Berkeley) 4/28/95"; |
36#endif /* not lint */ 37 38#include <sys/param.h> |
39#include <sys/time.h> |
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; |
72 if (inoinfo(inumber)->ino_state != USTATE && |
73 (ckinode(dp, &idesc) & STOP)) 74 return; 75 } 76 } 77} 78 79static int 80pass1bcheck(idesc) --- 24 unchanged lines hidden --- |