diff options
author | scottl <scottl@FreeBSD.org> | 2013-12-30 01:16:08 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2013-12-30 01:16:08 +0000 |
commit | f0d9289d4bc1cea75e6ade6e0b1496020b81d254 (patch) | |
tree | 3f5b4ba557bcb5004e79798d6d96972dfe7d2e45 /sbin/fsck_ffs/fsck_ffs.8 | |
parent | 3652e600422dfba0018864e0430f86f9fae07bbd (diff) | |
download | FreeBSD-src-f0d9289d4bc1cea75e6ade6e0b1496020b81d254.zip FreeBSD-src-f0d9289d4bc1cea75e6ade6e0b1496020b81d254.tar.gz |
Add the -R option to allow fsck_ffs to restart itself when too many critical
errors have been detected in a particular run.
Clean up the global state variables so that a restart can happen correctly.
Separate the global variables in fsck_ffs and fsdb to their own file. This
fixes header sharing with fscd.
Correctly initialize, static-ize, and remove global variables as needed in
dir.c. This fixes a problem with lost+found directories that was causing
a segfault.
Correctly initialize, static-ize, and remove global variables as needed in
suj.c.
Initialize the suj globals before allocating the disk object, not after.
Also ensure that 'preen' mode doesn't conflict with 'restart' mode
Submitted by: scottl, max
Reviewed by: max, mckusick (earlier version)
Obtained from: Netflix
MFC after: 3 days
Diffstat (limited to 'sbin/fsck_ffs/fsck_ffs.8')
-rw-r--r-- | sbin/fsck_ffs/fsck_ffs.8 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/fsck_ffs.8 b/sbin/fsck_ffs/fsck_ffs.8 index adf08d7..828df27 100644 --- a/sbin/fsck_ffs/fsck_ffs.8 +++ b/sbin/fsck_ffs/fsck_ffs.8 @@ -38,7 +38,7 @@ .Nd file system consistency check and interactive repair .Sh SYNOPSIS .Nm -.Op Fl BEFfnpryZ +.Op Fl BEFfnpRryZ .Op Fl b Ar block .Op Fl c Ar level .Op Fl m Ar mode @@ -266,6 +266,11 @@ which is assumed to be affirmative; do not open the file system for writing. .It Fl p Preen file systems (see above). +.It Fl R +Instruct fsck_ffs to restart itself if it encounters certain errors that +warrant another run. It will limit itself to a maximum of 10 restarts +in a given run in order to avoid an endless loop with extremely corrupted +filesystems. .It Fl r Free up excess unused inodes. Decreasing the number of preallocated inodes reduces the |