diff options
author | adrian <adrian@FreeBSD.org> | 2000-10-09 08:26:35 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2000-10-09 08:26:35 +0000 |
commit | 336dc694cc4eb3461d1cdf551d151f5b351c73a8 (patch) | |
tree | 61b8bdd5a93b5355390a124017db90a115976961 /sbin/fsck_ffs/fsck.h | |
parent | 410d456c0b32b2395ed4144947864144f90c445a (diff) | |
download | FreeBSD-src-336dc694cc4eb3461d1cdf551d151f5b351c73a8.zip FreeBSD-src-336dc694cc4eb3461d1cdf551d151f5b351c73a8.tar.gz |
Reviewed by: rwatson, bp
Approved by: rwatson
Obtained from: NetBSD-current source tree
The beginnings of the fsck wrappers stuff from NetBSD. This particular commit
brings a newly repo-copied sbin/fsck_ffs/ (from sbin/fsck/) into fsck wrappers
mode.
A quick overview (the code reflects this):
* Documentation changed to reflect fsck_ffs instead of fsck
* Simply acts on a single filesystem, doesn't try to do any multiple filesystem
magic - this is done by the fsck wrappers now
And then specific to fsck_ffs:
* link to /sbin/fsck_4.2bsd and /sbin/fsck_ufs. This is because right now
the filesystem is of type ufs not ffs, and that during autodetection the
labeltype rather than the VFS type is used - this is because when doing
an autodetection of filesystem type in the fsck wrapper program, it does
not have any link between label type (4.2bsd, vinum, etc) and VFS string.
Note that this shouldn't break a build since the required buildworld Makefile
magic and import of the fsck wrapper code into src/sbin/fsck/ will happen
in a seperate commit.
Diffstat (limited to 'sbin/fsck_ffs/fsck.h')
-rw-r--r-- | sbin/fsck_ffs/fsck.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h index f0280fe..a0be2a4 100644 --- a/sbin/fsck_ffs/fsck.h +++ b/sbin/fsck_ffs/fsck.h @@ -205,7 +205,9 @@ char preen; /* just fix normal inconsistencies */ char rerun; /* rerun fsck. Only used in non-preen mode */ int returntosingle; /* 1 => return to single user mode on exit */ char resolved; /* cleared if unresolved changes => not clean */ +int markclean; /* mark file system clean when done */ 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 */ @@ -252,9 +254,6 @@ void cacheino __P((struct dinode *dp, ino_t inumber)); void catch __P((int)); void catchquit __P((int)); int changeino __P((ino_t dir, char *name, ino_t newnum)); -int checkfstab __P((int preen, int maxrun, - int (*docheck)(struct fstab *), - int (*chkit)(char *, char *, long, int))); int chkrange __P((ufs_daddr_t blk, int cnt)); void ckfini __P((int markclean)); int ckinode __P((struct dinode *dp, struct inodesc *)); |