diff options
author | 2021-01-27 05:03:23 +0000 | |
---|---|---|
committer | 2021-01-27 05:03:23 +0000 | |
commit | 0986c2042dc71e110db3e0120dcdf168872f6f21 (patch) | |
tree | d9ab33e1c01a59c4d940a221b6b78e6e87d38e5d /sbin/fsdb | |
parent | have pf_route{,6} clear the pf_pdesc mbuf ref early for route-to/reply-to. (diff) | |
download | wireguard-openbsd-0986c2042dc71e110db3e0120dcdf168872f6f21.tar.xz wireguard-openbsd-0986c2042dc71e110db3e0120dcdf168872f6f21.zip |
shuffle externs (and definitions) around to satisfy -fno-common
ok mortimer
Diffstat (limited to 'sbin/fsdb')
-rw-r--r-- | sbin/fsdb/fsdb.c | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c index d52f01aa7c8..171920988ae 100644 --- a/sbin/fsdb/fsdb.c +++ b/sbin/fsdb/fsdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fsdb.c,v 1.33 2020/05/28 15:48:28 otto Exp $ */ +/* $OpenBSD: fsdb.c,v 1.34 2021/01/27 05:03:25 deraadt Exp $ */ /* $NetBSD: fsdb.c,v 1.7 1997/01/11 06:50:53 lukem Exp $ */ /*- @@ -70,6 +70,53 @@ int returntosingle = 0; union dinode *curinode; ino_t curinum; +struct inostatlist *inostathead; + +struct bufarea bufhead; /* head of list of other blks in filesys */ +struct bufarea sblk; /* file system superblock */ +struct bufarea asblk; /* alternate file system superblock */ +struct bufarea *pdirbp; /* current directory contents */ +struct bufarea *pbp; /* current inode block */ + +struct dups *duplist; /* head of dup list */ +struct dups *muldup; /* end of unique duplicate dup block numbers */ + +struct zlncnt *zlnhead; /* head of zero link count list */ + +struct inoinfo **inphead, **inpsort; + +extern long numdirs, listmax, inplast; + +long secsize; /* actual disk sector size */ +char nflag; /* assume a no response */ +char yflag; /* assume a yes response */ +daddr_t bflag; /* location of alternate super block */ +int debug; /* output debugging info */ +int cvtlevel; /* convert to newer file system format */ +char usedsoftdep; /* just fix soft dependency inconsistencies */ +int preen; /* just fix normal inconsistencies */ +char resolved; /* cleared if unresolved changes => not clean */ +char havesb; /* superblock has been read */ +char skipclean; /* skip clean file systems if preening */ +int fsmodified; /* 1 => write done to file system */ +int fsreadfd; /* file descriptor for reading file system */ +int fswritefd; /* file descriptor for writing file system */ +int rerun; /* rerun fsck. Only used in non-preen mode */ + +daddr_t maxfsblock; /* number of blocks in the file system */ +char *blockmap; /* ptr to primary blk allocation map */ +ino_t maxino; /* number of inodes in file system */ +ino_t lastino; /* last inode in use */ + +ino_t lfdir; /* lost & found directory inode number */ + +daddr_t n_blks; /* number of blocks in use */ +int64_t n_files; /* number of files in use */ + +struct ufs1_dinode ufs1_zino; +struct ufs2_dinode ufs2_zino; + + static void usage(void) { |