pass2.c (86514) | pass2.c (92806) |
---|---|
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[] = "@(#)pass2.c 8.9 (Berkeley) 4/28/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[] = "@(#)pass2.c 8.9 (Berkeley) 4/28/95"; 37#endif 38static const char rcsid[] = |
39 "$FreeBSD: head/sbin/fsck_ffs/pass2.c 86514 2001-11-17 23:48:21Z iedowse $"; | 39 "$FreeBSD: head/sbin/fsck_ffs/pass2.c 92806 2002-03-20 17:55:10Z obrien $"; |
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 --- 5 unchanged lines hidden (view full) --- 53#define MINDIRSIZE (sizeof (struct dirtemplate)) 54 55static int blksort __P((const void *, const void *)); 56static int pass2check __P((struct inodesc *)); 57 58void 59pass2() 60{ | 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 --- 5 unchanged lines hidden (view full) --- 53#define MINDIRSIZE (sizeof (struct dirtemplate)) 54 55static int blksort __P((const void *, const void *)); 56static int pass2check __P((struct inodesc *)); 57 58void 59pass2() 60{ |
61 register struct dinode *dp; 62 register struct inoinfo **inpp, *inp; | 61 struct dinode *dp; 62 struct inoinfo **inpp, *inp; |
63 struct inoinfo **inpend; 64 struct inodesc curino; 65 struct dinode dino; 66 char pathbuf[MAXPATHLEN + 1]; 67 68 switch (inoinfo(ROOTINO)->ino_state) { 69 70 case USTATE: --- 147 unchanged lines hidden (view full) --- 218 */ 219 propagate(); 220} 221 222static int 223pass2check(idesc) 224 struct inodesc *idesc; 225{ | 63 struct inoinfo **inpend; 64 struct inodesc curino; 65 struct dinode dino; 66 char pathbuf[MAXPATHLEN + 1]; 67 68 switch (inoinfo(ROOTINO)->ino_state) { 69 70 case USTATE: --- 147 unchanged lines hidden (view full) --- 218 */ 219 propagate(); 220} 221 222static int 223pass2check(idesc) 224 struct inodesc *idesc; 225{ |
226 register struct direct *dirp = idesc->id_dirp; 227 register struct inoinfo *inp; | 226 struct direct *dirp = idesc->id_dirp; 227 struct inoinfo *inp; |
228 int n, entrysize, ret = 0; 229 struct dinode *dp; 230 char *errmsg; 231 struct direct proto; 232 char namebuf[MAXPATHLEN + 1]; 233 char pathbuf[MAXPATHLEN + 1]; 234 235 /* --- 262 unchanged lines hidden --- | 228 int n, entrysize, ret = 0; 229 struct dinode *dp; 230 char *errmsg; 231 struct direct proto; 232 char namebuf[MAXPATHLEN + 1]; 233 char pathbuf[MAXPATHLEN + 1]; 234 235 /* --- 262 unchanged lines hidden --- |