diff options
author | Kirk McKusick <mckusick@FreeBSD.org> | 2001-04-16 22:22:21 +0000 |
---|---|---|
committer | Kirk McKusick <mckusick@FreeBSD.org> | 2001-04-16 22:22:21 +0000 |
commit | 38375c40b8a306ea04b5a442334a0cafd6ac746d (patch) | |
tree | 165398aa772f09cf9780a9821c8bf75c76da2226 /sbin/fsck_ffs/fsck.h | |
parent | 7d6505e64eeb068562679202b3819962c99eaa76 (diff) | |
download | src-38375c40b8a306ea04b5a442334a0cafd6ac746d.tar.gz src-38375c40b8a306ea04b5a442334a0cafd6ac746d.zip |
Minor background cleanups:
1) Set the FS_NEEDSFSCK flag when unexpected problems are encountered.
2) Clear the FS_NEEDSFSCK flag after a successful foreground cleanup.
3) Refuse to run in background when the FS_NEEDSFSCK flag is set.
4) Avoid taking and removing a snapshot when the filesystem is already clean.
5) Properly implement the force cleaning (-f) flag when in preen mode.
Note that you need to have revision 1.21 (date: 2001/04/14 05:26:28) of
fs.h installed in <ufs/ffs/fs.h> defining FS_NEEDSFSCK for this to compile.
Notes
Notes:
svn path=/head/; revision=75557
Diffstat (limited to 'sbin/fsck_ffs/fsck.h')
-rw-r--r-- | sbin/fsck_ffs/fsck.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h index e598b3583a0e..dee89c72c857 100644 --- a/sbin/fsck_ffs/fsck.h +++ b/sbin/fsck_ffs/fsck.h @@ -203,7 +203,6 @@ char snapname[BUFSIZ]; /* when doing snapshots, the name of the file */ char *cdevname; /* name of device being checked */ long dev_bsize; /* computed value of DEV_BSIZE */ long secsize; /* actual disk sector size */ -char fflag; /* force check, ignore clean flag */ char nflag; /* assume a no response */ char yflag; /* assume a yes response */ int bkgrdflag; /* use a snapshot to run on an active system */ @@ -313,6 +312,7 @@ void pfatal __P((const char *fmt, ...)); void pinode __P((ino_t ino)); void propagate __P((void)); void pwarn __P((const char *fmt, ...)); +int readsb __P((int listerr)); int reply __P((char *question)); void rwerror __P((char *mesg, ufs_daddr_t blk)); void setinodebuf __P((ino_t)); |