summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/main.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-10-12 03:06:56 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-10-12 03:06:56 +0000
commit1ee11199963034918134473035e0401509258461 (patch)
tree56c90f6eb311a194b65b6cd8ca297da1e14dcc79 /sbin/fsck_ffs/main.c
parent2163925a12b34eb2ee6d9efc4e3dd8a019630d21 (diff)
From Kirk McKusick:
If a directory somehow develops a hole (that is a block pointer that has a value of zero), fsck would give the filesystem a clean bill of health, but the kernel would panic when accessing the directory with the hole. Fsck now checks for holes in directories. If found in preen mode, fsck fails. In manual mode, it can be directed to shorten the directory to the beginning of the hole. A more complete solution would be to allocate a block to fill the hole. However, this is a lot more work for a `cannot happen' error, so the extra effort seems unwarranted.
Diffstat (limited to 'sbin/fsck_ffs/main.c')
-rw-r--r--sbin/fsck_ffs/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c
index d1e147a3caf..0cf12d913bb 100644
--- a/sbin/fsck_ffs/main.c
+++ b/sbin/fsck_ffs/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.4 1996/06/23 14:30:29 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.5 1996/10/12 03:06:54 tholo Exp $ */
/* $NetBSD: main.c,v 1.18.2.1 1995/11/01 00:06:18 jtc Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/23/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.4 1996/06/23 14:30:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.5 1996/10/12 03:06:54 tholo Exp $";
#endif
#endif /* not lint */
@@ -326,6 +326,8 @@ checkfilesys(filesys, mntpt, auxdata, child)
return (0);
if (!preen)
printf("\n***** FILE SYSTEM WAS MODIFIED *****\n");
+ if (rerun)
+ printf("\n***** PLEASE RERUN FSCK *****\n");
if (hotroot) {
struct statfs stfs_buf;
/*