Home | History | Annotate | Line # | Download | only in fsck_ffs
extern.h revision 1.21
      1  1.21  xtraeme /*	$NetBSD: extern.h,v 1.21 2005/01/20 15:29:40 xtraeme Exp $	*/
      2   1.3      cgd 
      3   1.1      cgd /*
      4   1.2      cgd  * Copyright (c) 1994 James A. Jegers
      5   1.1      cgd  * All rights reserved.
      6   1.1      cgd  *
      7   1.1      cgd  * Redistribution and use in source and binary forms, with or without
      8   1.1      cgd  * modification, are permitted provided that the following conditions
      9   1.1      cgd  * are met:
     10   1.1      cgd  * 1. Redistributions of source code must retain the above copyright
     11   1.1      cgd  *    notice, this list of conditions and the following disclaimer.
     12   1.2      cgd  * 2. The name of the author may not be used to endorse or promote products
     13   1.1      cgd  *    derived from this software without specific prior written permission
     14   1.1      cgd  *
     15   1.1      cgd  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     16   1.1      cgd  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     17   1.1      cgd  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     18   1.1      cgd  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     19   1.1      cgd  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     20   1.1      cgd  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     21   1.1      cgd  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     22   1.1      cgd  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     23   1.1      cgd  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     24   1.1      cgd  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     25   1.1      cgd  */
     26   1.1      cgd 
     27  1.21  xtraeme void		adjust(struct inodesc *, int);
     28  1.21  xtraeme daddr_t		allocblk(long);
     29  1.21  xtraeme ino_t		allocdir(ino_t, ino_t, int);
     30  1.21  xtraeme ino_t		allocino(ino_t request, int type);
     31  1.21  xtraeme void		blkerror(ino_t, char *, daddr_t);
     32  1.21  xtraeme int		bread(int, char *, daddr_t, long);
     33  1.21  xtraeme void		bufinit(void);
     34  1.21  xtraeme void		bwrite(int, char *, daddr_t, long);
     35  1.21  xtraeme void		cacheino(union dinode *, ino_t);
     36  1.21  xtraeme void		catch(int);
     37  1.21  xtraeme void		catchquit(int);
     38  1.21  xtraeme int		changeino(ino_t, char *, ino_t);
     39  1.21  xtraeme int		chkrange(daddr_t, int);
     40  1.21  xtraeme void		ckfini(void);
     41  1.21  xtraeme int		ckinode(union dinode *, struct inodesc *);
     42  1.21  xtraeme int		clearentry(struct inodesc *);
     43  1.21  xtraeme void		clri(struct inodesc *, char *, int);
     44  1.21  xtraeme int		cmpsblks(const struct fs *, struct fs *);
     45  1.21  xtraeme int		cmpsblks42(const struct fs *, struct fs *);
     46  1.21  xtraeme int		cmpsblks44(const struct fs *, struct fs *);
     47  1.21  xtraeme union		dinode * getnextinode(ino_t);
     48  1.21  xtraeme void		direrror(ino_t, char *);
     49  1.21  xtraeme int		dirscan(struct inodesc *);
     50  1.21  xtraeme int		dofix(struct inodesc *, char *);
     51  1.21  xtraeme void		fileerror(ino_t, ino_t, char *);
     52  1.21  xtraeme int		findino(struct inodesc *);
     53  1.21  xtraeme int		findname(struct inodesc *);
     54  1.21  xtraeme void		flush(int, struct bufarea *);
     55  1.21  xtraeme void		freeblk(daddr_t, long);
     56  1.21  xtraeme void		freeino(ino_t);
     57  1.21  xtraeme void		freeinodebuf(void);
     58  1.21  xtraeme int		ftypeok(union dinode *);
     59  1.21  xtraeme void		getblk(struct bufarea *, daddr_t, long);
     60  1.21  xtraeme struct bufarea *getdatablk(daddr_t, long);
     61  1.21  xtraeme struct inoinfo *getinoinfo(ino_t);
     62  1.21  xtraeme union dinode  *ginode(ino_t);
     63  1.21  xtraeme void		getpathname(char *, size_t, ino_t, ino_t);
     64  1.21  xtraeme void		infohandler(int sig);
     65  1.21  xtraeme void		inocleanup(void);
     66  1.21  xtraeme void		inodirty(void);
     67  1.21  xtraeme struct inostat *inoinfo(ino_t);
     68  1.21  xtraeme int		linkup(ino_t, ino_t, char *);
     69  1.21  xtraeme int		makeentry(ino_t, ino_t, char *);
     70  1.21  xtraeme void		pass1(void);
     71  1.21  xtraeme void		pass1b(void);
     72  1.21  xtraeme int		pass1check(struct inodesc *);
     73  1.21  xtraeme void		pass2(void);
     74  1.21  xtraeme void		pass3(void);
     75  1.21  xtraeme void		pass4(void);
     76  1.21  xtraeme int		pass4check(struct inodesc *);
     77  1.21  xtraeme void		pass5(void);
     78  1.21  xtraeme void		pinode(ino_t);
     79  1.21  xtraeme void		propagate(ino_t);
     80  1.21  xtraeme int		reply(char *);
     81  1.21  xtraeme void		setinodebuf(ino_t);
     82  1.21  xtraeme int		setup(const char *);
     83  1.21  xtraeme void		voidquit(int);
     84   1.8   bouyer 
     85  1.21  xtraeme void	swap_cg(struct cg *, struct cg *);
     86  1.21  xtraeme void copyback_cg(struct bufarea *);
     87  1.19      dbj void sb_oldfscompat_write(struct fs *, struct fs *);
     88  1.19      dbj void sb_oldfscompat_read(struct fs *, struct fs **);
     89