Deleted Added
full compact
fsck.h (62668) fsck.h (66861)
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

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * @(#)fsck.h 8.4 (Berkeley) 5/9/95
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

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * @(#)fsck.h 8.4 (Berkeley) 5/9/95
34 * $FreeBSD: head/sbin/fsck_ffs/fsck.h 62668 2000-07-06 02:03:11Z mckusick $
34 * $FreeBSD: head/sbin/fsck_ffs/fsck.h 66861 2000-10-09 08:26:35Z adrian $
35 */
36
37#include <unistd.h>
38#include <stdlib.h>
39#include <stdio.h>
40
41#define MAXDUP 10 /* limit on dup blks (per inode) */
42#define MAXBAD 10 /* limit on bad blks (per inode) */

--- 157 unchanged lines hidden (view full) ---

200int doinglevel1; /* converting to new cylinder group format */
201int doinglevel2; /* converting to new inode format */
202int newinofmt; /* filesystem has new inode format */
203char usedsoftdep; /* just fix soft dependency inconsistencies */
204char preen; /* just fix normal inconsistencies */
205char rerun; /* rerun fsck. Only used in non-preen mode */
206int returntosingle; /* 1 => return to single user mode on exit */
207char resolved; /* cleared if unresolved changes => not clean */
35 */
36
37#include <unistd.h>
38#include <stdlib.h>
39#include <stdio.h>
40
41#define MAXDUP 10 /* limit on dup blks (per inode) */
42#define MAXBAD 10 /* limit on bad blks (per inode) */

--- 157 unchanged lines hidden (view full) ---

200int doinglevel1; /* converting to new cylinder group format */
201int doinglevel2; /* converting to new inode format */
202int newinofmt; /* filesystem has new inode format */
203char usedsoftdep; /* just fix soft dependency inconsistencies */
204char preen; /* just fix normal inconsistencies */
205char rerun; /* rerun fsck. Only used in non-preen mode */
206int returntosingle; /* 1 => return to single user mode on exit */
207char resolved; /* cleared if unresolved changes => not clean */
208int markclean; /* mark file system clean when done */
208char havesb; /* superblock has been read */
209char havesb; /* superblock has been read */
210char skipclean; /* skip clean file systems if preening */
209int fsmodified; /* 1 => write done to file system */
210int fsreadfd; /* file descriptor for reading file system */
211int fswritefd; /* file descriptor for writing file system */
212
213ufs_daddr_t maxfsblock; /* number of blocks in the file system */
214char *blockmap; /* ptr to primary blk allocation map */
215ino_t maxino; /* number of inodes in file system */
216

--- 30 unchanged lines hidden (view full) ---

247char *blockcheck __P((char *name));
248int bread __P((int fd, char *buf, ufs_daddr_t blk, long size));
249void bufinit __P((void));
250void bwrite __P((int fd, char *buf, ufs_daddr_t blk, long size));
251void cacheino __P((struct dinode *dp, ino_t inumber));
252void catch __P((int));
253void catchquit __P((int));
254int changeino __P((ino_t dir, char *name, ino_t newnum));
211int fsmodified; /* 1 => write done to file system */
212int fsreadfd; /* file descriptor for reading file system */
213int fswritefd; /* file descriptor for writing file system */
214
215ufs_daddr_t maxfsblock; /* number of blocks in the file system */
216char *blockmap; /* ptr to primary blk allocation map */
217ino_t maxino; /* number of inodes in file system */
218

--- 30 unchanged lines hidden (view full) ---

249char *blockcheck __P((char *name));
250int bread __P((int fd, char *buf, ufs_daddr_t blk, long size));
251void bufinit __P((void));
252void bwrite __P((int fd, char *buf, ufs_daddr_t blk, long size));
253void cacheino __P((struct dinode *dp, ino_t inumber));
254void catch __P((int));
255void catchquit __P((int));
256int changeino __P((ino_t dir, char *name, ino_t newnum));
255int checkfstab __P((int preen, int maxrun,
256 int (*docheck)(struct fstab *),
257 int (*chkit)(char *, char *, long, int)));
258int chkrange __P((ufs_daddr_t blk, int cnt));
259void ckfini __P((int markclean));
260int ckinode __P((struct dinode *dp, struct inodesc *));
261void clri __P((struct inodesc *, char *type, int flag));
262int clearentry __P((struct inodesc *));
263void direrror __P((ino_t ino, char *errmesg));
264int dirscan __P((struct inodesc *));
265int dofix __P((struct inodesc *, char *msg));

--- 40 unchanged lines hidden ---
257int chkrange __P((ufs_daddr_t blk, int cnt));
258void ckfini __P((int markclean));
259int ckinode __P((struct dinode *dp, struct inodesc *));
260void clri __P((struct inodesc *, char *type, int flag));
261int clearentry __P((struct inodesc *));
262void direrror __P((ino_t ino, char *errmesg));
263int dirscan __P((struct inodesc *));
264int dofix __P((struct inodesc *, char *msg));

--- 40 unchanged lines hidden ---