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[] = "@(#)pass1.c 8.6 (Berkeley) 4/28/95"; 37#endif 38static const char rcsid[] = |
39 "$FreeBSD: head/sbin/fsck_ffs/pass1.c 92806 2002-03-20 17:55:10Z obrien $"; |
40#endif /* not lint */ 41 42#include <sys/param.h> 43#include <sys/stat.h> 44#include <sys/sysctl.h> 45 46#include <ufs/ufs/dinode.h> 47#include <ufs/ufs/dir.h> --- 127 unchanged lines hidden (view full) --- 175 inostathead[c].il_stat = info; 176 } 177 freeinodebuf(); 178} 179 180static void 181checkinode(inumber, idesc) 182 ino_t inumber; |
183 struct inodesc *idesc; |
184{ |
185 struct dinode *dp; |
186 struct zlncnt *zlnp; 187 u_int64_t kernmaxfilesize; 188 ufs_daddr_t ndb, j; 189 mode_t mode; 190 char *symbuf; 191 192 dp = getnextinode(inumber); 193 mode = dp->di_mode & IFMT; --- 176 unchanged lines hidden (view full) --- 370 dp = ginode(inumber); 371 clearinode(dp); 372 inodirty(); 373 } 374} 375 376int 377pass1check(idesc) |
378 struct inodesc *idesc; |
379{ 380 int res = KEEPON; 381 int anyout, nfrags; 382 ufs_daddr_t blkno = idesc->id_blkno; |
383 struct dups *dlp; |
384 struct dups *new; 385 386 if (idesc->id_type == SNAP) { 387 if (blkno == BLK_NOCOPY) 388 return (KEEPON); 389 if (idesc->id_number == cursnapshot) { 390 if (blkno == blkstofrags(&sblock, idesc->id_lbn)) 391 return (KEEPON); --- 72 unchanged lines hidden --- |