Home | History | Annotate | Line # | Download | only in fsck_ffs
extern.h revision 1.25.2.1
      1  1.25.2.1    bouyer /*	$NetBSD: extern.h,v 1.25.2.1 2011/01/20 14:24:53 bouyer 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.23    simonb ino_t		allocino(ino_t, int);
     31      1.22  christos void		blkerror(ino_t, const 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.22  christos int		changeino(ino_t, const 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.22  christos void		clri(struct inodesc *, const 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.22  christos void		direrror(ino_t, const char *);
     49      1.21   xtraeme int		dirscan(struct inodesc *);
     50      1.22  christos int		dofix(struct inodesc *, const char *);
     51      1.22  christos void		fileerror(ino_t, ino_t, const 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.22  christos int		makeentry(ino_t, ino_t, const 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.25.2.1    bouyer void		pass6(void);
     79      1.21   xtraeme void		pinode(ino_t);
     80      1.21   xtraeme void		propagate(ino_t);
     81      1.22  christos int		reply(const char *);
     82      1.21   xtraeme void		setinodebuf(ino_t);
     83      1.24    bouyer int		setup(const char *, const char *);
     84      1.21   xtraeme void		voidquit(int);
     85  1.25.2.1    bouyer ssize_t		readblk(union dinode *, off_t, struct bufarea **);
     86  1.25.2.1    bouyer struct bufarea *expandfile(union dinode *);
     87  1.25.2.1    bouyer 
     88  1.25.2.1    bouyer struct uquot *	find_uquot(struct uquot_hash *, uint32_t, int);
     89  1.25.2.1    bouyer void		remove_uquot(struct uquot_hash *,struct uquot *);
     90  1.25.2.1    bouyer void		update_uquot(ino_t, uid_t, gid_t, int64_t, int64_t);
     91  1.25.2.1    bouyer int		is_quota_inode(ino_t);
     92  1.25.2.1    bouyer 
     93       1.8    bouyer 
     94      1.25    bouyer int		check_wapbl(void);
     95      1.23    simonb void		replay_wapbl(void);
     96      1.23    simonb void		cleanup_wapbl(void);
     97      1.23    simonb int		read_wapbl(char *, long, daddr_t);
     98      1.23    simonb int		is_journal_inode(ino_t);
     99      1.23    simonb 
    100  1.25.2.1    bouyer void		quota2_create_inode(struct fs *, int);
    101  1.25.2.1    bouyer int		quota2_check_inode(int);
    102  1.25.2.1    bouyer int		quota2_check_usage(int);
    103  1.25.2.1    bouyer int		quota2_check_doquota(void);
    104  1.25.2.1    bouyer int		quota2_alloc_quota(union dinode *, struct bufarea *,
    105  1.25.2.1    bouyer 					uid_t, uint64_t, uint64_t);
    106  1.25.2.1    bouyer 
    107      1.23    simonb void		swap_cg(struct cg *, struct cg *);
    108      1.23    simonb void		copyback_cg(struct bufarea *);
    109      1.23    simonb void		sb_oldfscompat_write(struct fs *, struct fs *);
    110      1.23    simonb void		sb_oldfscompat_read(struct fs *, struct fs **);
    111