]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r260068, r260069, r260076
authorscottl <scottl@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 2 Jan 2014 01:44:14 +0000 (01:44 +0000)
committerscottl <scottl@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 2 Jan 2014 01:44:14 +0000 (01:44 +0000)
commitb62727f2522e8e7d74b7cf0c4f6a12b7056a57b4
tree4d289d7c3e2452eaa1f2451291d10994b71d58fc
parentb12ccbd8f4df627ba17196bac75a9298f6800fd9
MFC r260068, r260069, r260076

 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

Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/10@260178 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
12 files changed:
sbin/fsck_ffs/Makefile
sbin/fsck_ffs/dir.c
sbin/fsck_ffs/fsck.h
sbin/fsck_ffs/fsck_ffs.8
sbin/fsck_ffs/fsutil.c
sbin/fsck_ffs/globs.c [new file with mode: 0644]
sbin/fsck_ffs/main.c
sbin/fsck_ffs/pass1.c
sbin/fsck_ffs/pass1b.c
sbin/fsck_ffs/suj.c
sbin/fsck_ffs/utilities.c
sbin/fsdb/Makefile