diff options
author | delphij <delphij@FreeBSD.org> | 2008-04-10 23:49:23 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2008-04-10 23:49:23 +0000 |
commit | aff41aab585ea9a4db2a88f4299e3ad8f2f12031 (patch) | |
tree | b5f93f915b454019d2b6ae372ac45f5167ac1c67 /sbin/fsck_ffs/fsck.h | |
parent | d99d951c1c77a9727f83ca99c52261cc3bc93f76 (diff) | |
download | FreeBSD-src-aff41aab585ea9a4db2a88f4299e3ad8f2f12031.zip FreeBSD-src-aff41aab585ea9a4db2a88f4299e3ad8f2f12031.tar.gz |
Add a new flag, '-C' which enables a special mode that is intended for
catastrophic recovery. Currently, this mode only validates whether a
cylindergroup has good signature data, and prompts the user to decide
whether to clear it as a whole.
This mode is useful when there is data damage on a disk and you are
working on copy of the original disk, as fsck_ffs(8) tends to abnormally
exit in such case, as a last resort to recover data from the disk.
Diffstat (limited to 'sbin/fsck_ffs/fsck.h')
-rw-r--r-- | sbin/fsck_ffs/fsck.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h index f9b38e0..14f49d6 100644 --- a/sbin/fsck_ffs/fsck.h +++ b/sbin/fsck_ffs/fsck.h @@ -270,6 +270,7 @@ char yflag; /* assume a yes response */ int bkgrdflag; /* use a snapshot to run on an active system */ int bflag; /* location of alternate super block */ int debug; /* output debugging info */ +char catastrophicflag; /* run in catastrophic mode */ int cvtlevel; /* convert to newer file system format */ int bkgrdcheck; /* determine if background check is possible */ int bkgrdsumadj; /* whether the kernel have ability to adjust superblock summary */ @@ -335,6 +336,7 @@ void cacheino(union dinode *dp, ino_t inumber); void catch(int); void catchquit(int); int changeino(ino_t dir, const char *name, ino_t newnum); +void check_cgmagic(int cg, struct cg *cgp); int chkrange(ufs2_daddr_t blk, int cnt); void ckfini(int markclean); int ckinode(union dinode *dp, struct inodesc *); |