Deleted Added
full compact
fsck.h (86514) fsck.h (92839)
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 86514 2001-11-17 23:48:21Z iedowse $
34 * $FreeBSD: head/sbin/fsck_ffs/fsck.h 92839 2002-03-20 22:57:10Z imp $
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) */

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

252#define ALTERED 0x08
253#define FOUND 0x10
254
255#define EEXIT 8 /* Standard error exit. */
256
257struct fstab;
258
259
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) */

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

252#define ALTERED 0x08
253#define FOUND 0x10
254
255#define EEXIT 8 /* Standard error exit. */
256
257struct fstab;
258
259
260void adjust __P((struct inodesc *, int lcnt));
261ufs_daddr_t allocblk __P((long frags));
262ino_t allocdir __P((ino_t parent, ino_t request, int mode));
263ino_t allocino __P((ino_t request, int type));
264void blkerror __P((ino_t ino, char *type, ufs_daddr_t blk));
265char *blockcheck __P((char *name));
266int bread __P((int fd, char *buf, ufs_daddr_t blk, long size));
267void bufinit __P((void));
268void bwrite __P((int fd, char *buf, ufs_daddr_t blk, long size));
269void cacheino __P((struct dinode *dp, ino_t inumber));
270void catch __P((int));
271void catchquit __P((int));
272int changeino __P((ino_t dir, char *name, ino_t newnum));
273int chkrange __P((ufs_daddr_t blk, int cnt));
274void ckfini __P((int markclean));
275int ckinode __P((struct dinode *dp, struct inodesc *));
276void clri __P((struct inodesc *, char *type, int flag));
277int clearentry __P((struct inodesc *));
278void direrror __P((ino_t ino, char *errmesg));
279int dirscan __P((struct inodesc *));
280int dofix __P((struct inodesc *, char *msg));
281void ffs_clrblock __P((struct fs *, u_char *, ufs_daddr_t));
282void ffs_fragacct __P((struct fs *, int, int32_t [], int));
283int ffs_isblock __P((struct fs *, u_char *, ufs_daddr_t));
284void ffs_setblock __P((struct fs *, u_char *, ufs_daddr_t));
285void fileerror __P((ino_t cwd, ino_t ino, char *errmesg));
286int findino __P((struct inodesc *));
287int findname __P((struct inodesc *));
288void flush __P((int fd, struct bufarea *bp));
289void freeblk __P((ufs_daddr_t blkno, long frags));
290void freeino __P((ino_t ino));
291void freeinodebuf __P((void));
292int ftypeok __P((struct dinode *dp));
293void getblk __P((struct bufarea *bp, ufs_daddr_t blk, long size));
294struct bufarea *getdatablk __P((ufs_daddr_t blkno, long size));
295struct inoinfo *getinoinfo __P((ino_t inumber));
296struct dinode *getnextinode __P((ino_t inumber));
297void getpathname __P((char *namebuf, ino_t curdir, ino_t ino));
298struct dinode *ginode __P((ino_t inumber));
299void infohandler __P((int sig));
300void inocleanup __P((void));
301void inodirty __P((void));
302struct inostat *inoinfo __P((ino_t inum));
303int linkup __P((ino_t orphan, ino_t parentdir, char *name));
304int makeentry __P((ino_t parent, ino_t ino, char *name));
305void panic __P((const char *fmt, ...)) __printflike(1, 2);
306void pass1 __P((void));
307void pass1b __P((void));
308int pass1check __P((struct inodesc *));
309void pass2 __P((void));
310void pass3 __P((void));
311void pass4 __P((void));
312int pass4check __P((struct inodesc *));
313void pass5 __P((void));
314void pfatal __P((const char *fmt, ...)) __printflike(1, 2);
315void pinode __P((ino_t ino));
316void propagate __P((void));
317void pwarn __P((const char *fmt, ...)) __printflike(1, 2);
318int readsb __P((int listerr));
319int reply __P((char *question));
320void rwerror __P((char *mesg, ufs_daddr_t blk));
321void sblock_init __P((void));
322void setinodebuf __P((ino_t));
323int setup __P((char *dev));
260void adjust(struct inodesc *, int lcnt);
261ufs_daddr_t allocblk(long frags);
262ino_t allocdir(ino_t parent, ino_t request, int mode);
263ino_t allocino(ino_t request, int type);
264void blkerror(ino_t ino, char *type, ufs_daddr_t blk);
265char *blockcheck(char *name);
266int bread(int fd, char *buf, ufs_daddr_t blk, long size);
267void bufinit(void);
268void bwrite(int fd, char *buf, ufs_daddr_t blk, long size);
269void cacheino(struct dinode *dp, ino_t inumber);
270void catch(int);
271void catchquit(int);
272int changeino(ino_t dir, char *name, ino_t newnum);
273int chkrange(ufs_daddr_t blk, int cnt);
274void ckfini(int markclean);
275int ckinode(struct dinode *dp, struct inodesc *);
276void clri(struct inodesc *, char *type, int flag);
277int clearentry(struct inodesc *);
278void direrror(ino_t ino, char *errmesg);
279int dirscan(struct inodesc *);
280int dofix(struct inodesc *, char *msg);
281void ffs_clrblock(struct fs *, u_char *, ufs_daddr_t);
282void ffs_fragacct(struct fs *, int, int32_t [], int);
283int ffs_isblock(struct fs *, u_char *, ufs_daddr_t);
284void ffs_setblock(struct fs *, u_char *, ufs_daddr_t);
285void fileerror(ino_t cwd, ino_t ino, char *errmesg);
286int findino(struct inodesc *);
287int findname(struct inodesc *);
288void flush(int fd, struct bufarea *bp);
289void freeblk(ufs_daddr_t blkno, long frags);
290void freeino(ino_t ino);
291void freeinodebuf(void);
292int ftypeok(struct dinode *dp);
293void getblk(struct bufarea *bp, ufs_daddr_t blk, long size);
294struct bufarea *getdatablk(ufs_daddr_t blkno, long size);
295struct inoinfo *getinoinfo(ino_t inumber);
296struct dinode *getnextinode(ino_t inumber);
297void getpathname(char *namebuf, ino_t curdir, ino_t ino);
298struct dinode *ginode(ino_t inumber);
299void infohandler(int sig);
300void inocleanup(void);
301void inodirty(void);
302struct inostat *inoinfo(ino_t inum);
303int linkup(ino_t orphan, ino_t parentdir, char *name);
304int makeentry(ino_t parent, ino_t ino, char *name);
305void panic(const char *fmt, ...) __printflike(1, 2);
306void pass1(void);
307void pass1b(void);
308int pass1check(struct inodesc *);
309void pass2(void);
310void pass3(void);
311void pass4(void);
312int pass4check(struct inodesc *);
313void pass5(void);
314void pfatal(const char *fmt, ...) __printflike(1, 2);
315void pinode(ino_t ino);
316void propagate(void);
317void pwarn(const char *fmt, ...) __printflike(1, 2);
318int readsb(int listerr);
319int reply(char *question);
320void rwerror(char *mesg, ufs_daddr_t blk);
321void sblock_init(void);
322void setinodebuf(ino_t);
323int setup(char *dev);