Home | History | Annotate | Line # | Download | only in fsck_ext2fs
      1  1.8  jakllsch /*	$NetBSD: extern.h,v 1.8 2012/11/25 19:42:14 jakllsch Exp $	*/
      2  1.1    bouyer 
      3  1.1    bouyer /*
      4  1.1    bouyer  * Copyright (c) 1997 Manuel Bouyer.
      5  1.1    bouyer  * Copyright (c) 1994 James A. Jegers
      6  1.1    bouyer  * All rights reserved.
      7  1.1    bouyer  *
      8  1.1    bouyer  * Redistribution and use in source and binary forms, with or without
      9  1.1    bouyer  * modification, are permitted provided that the following conditions
     10  1.1    bouyer  * are met:
     11  1.1    bouyer  * 1. Redistributions of source code must retain the above copyright
     12  1.1    bouyer  *    notice, this list of conditions and the following disclaimer.
     13  1.1    bouyer  * 2. The name of the author may not be used to endorse or promote products
     14  1.1    bouyer  *    derived from this software without specific prior written permission
     15  1.1    bouyer  *
     16  1.1    bouyer  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     17  1.1    bouyer  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     18  1.1    bouyer  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     19  1.1    bouyer  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     20  1.1    bouyer  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     21  1.1    bouyer  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     22  1.1    bouyer  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     23  1.1    bouyer  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     24  1.1    bouyer  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     25  1.1    bouyer  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     26  1.1    bouyer  */
     27  1.1    bouyer 
     28  1.4   xtraeme void	adjust(struct inodesc *, short);
     29  1.4   xtraeme int	allocblk(void);
     30  1.4   xtraeme int	allocdir(ino_t, ino_t, int);
     31  1.6  christos void	blkerror(ino_t, const char *, daddr_t);
     32  1.4   xtraeme int	bread(int, char *, daddr_t, long);
     33  1.4   xtraeme void	bufinit(void);
     34  1.4   xtraeme void	bwrite(int, char *, daddr_t, long);
     35  1.4   xtraeme void	cacheino(struct ext2fs_dinode *, ino_t);
     36  1.6  christos int	changeino(ino_t, const char *, ino_t);
     37  1.4   xtraeme int	chkrange(daddr_t, int);
     38  1.4   xtraeme void	ckfini(int);
     39  1.4   xtraeme int	ckinode(struct ext2fs_dinode *, struct inodesc *);
     40  1.6  christos void	clri(struct inodesc *, const char *, int);
     41  1.4   xtraeme int	dircheck(struct inodesc *, struct ext2fs_direct *);
     42  1.6  christos void	direrror(ino_t, const char *);
     43  1.4   xtraeme int	dirscan(struct inodesc *);
     44  1.6  christos int	dofix(struct inodesc *, const char *);
     45  1.6  christos void	fileerror(ino_t, ino_t, const char *);
     46  1.4   xtraeme int	findino(struct inodesc *);
     47  1.4   xtraeme int	findname(struct inodesc *);
     48  1.4   xtraeme void	flush(int, struct bufarea *);
     49  1.4   xtraeme void	freeblk(daddr_t);
     50  1.4   xtraeme void	freeino(ino_t);
     51  1.4   xtraeme void	freeinodebuf(void);
     52  1.4   xtraeme int	ftypeok(struct ext2fs_dinode *);
     53  1.4   xtraeme void	getpathname(char *, size_t, ino_t, ino_t);
     54  1.4   xtraeme void	inocleanup(void);
     55  1.4   xtraeme void	inodirty(void);
     56  1.5        ws u_int64_t inosize(struct ext2fs_dinode *);
     57  1.5        ws void	inossize(struct ext2fs_dinode *, u_int64_t);
     58  1.4   xtraeme int	linkup(ino_t, ino_t);
     59  1.6  christos int	makeentry(ino_t, ino_t, const char *);
     60  1.4   xtraeme void	pass1(void);
     61  1.4   xtraeme void	pass1b(void);
     62  1.4   xtraeme void	pass2(void);
     63  1.4   xtraeme void	pass3(void);
     64  1.4   xtraeme void	pass4(void);
     65  1.4   xtraeme int	pass1check(struct inodesc *);
     66  1.4   xtraeme int	pass4check(struct inodesc *);
     67  1.4   xtraeme void	pass5(void);
     68  1.4   xtraeme void	pinode(ino_t);
     69  1.4   xtraeme void	propagate(void);
     70  1.6  christos int	reply(const char *);
     71  1.4   xtraeme void	resetinodebuf(void);
     72  1.4   xtraeme int	setup(const char *);
     73  1.4   xtraeme struct	ext2fs_dinode * getnextinode(ino_t);
     74  1.8  jakllsch uint64_t inonblock(struct ext2fs_dinode *);
     75  1.8  jakllsch void	inosnblock(struct ext2fs_dinode *, uint64_t);
     76