summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs/utilities.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2013-12-30 01:16:08 +0000
committerscottl <scottl@FreeBSD.org>2013-12-30 01:16:08 +0000
commitf0d9289d4bc1cea75e6ade6e0b1496020b81d254 (patch)
tree3f5b4ba557bcb5004e79798d6d96972dfe7d2e45 /sbin/fsck_ffs/utilities.c
parent3652e600422dfba0018864e0430f86f9fae07bbd (diff)
downloadFreeBSD-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/utilities.c')
-rw-r--r--sbin/fsck_ffs/utilities.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sbin/fsck_ffs/utilities.c b/sbin/fsck_ffs/utilities.c
index 5e7d69c..4e82c31 100644
--- a/sbin/fsck_ffs/utilities.c
+++ b/sbin/fsck_ffs/utilities.c
@@ -108,14 +108,3 @@ retry:
return (origname);
}
-void
-infohandler(int sig __unused)
-{
- got_siginfo = 1;
-}
-
-void
-alarmhandler(int sig __unused)
-{
- got_sigalarm = 1;
-}
OpenPOWER on IntegriCloud