summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/SMM.doc/3.t
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/SMM.doc/3.t
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/SMM.doc/3.t')
-rw-r--r--sbin/fsck_ffs/SMM.doc/3.t15
1 files changed, 14 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/SMM.doc/3.t b/sbin/fsck_ffs/SMM.doc/3.t
index 5002e3e2d01..e236f5d869f 100644
--- a/sbin/fsck_ffs/SMM.doc/3.t
+++ b/sbin/fsck_ffs/SMM.doc/3.t
@@ -1,4 +1,4 @@
-.\" $OpenBSD: 3.t,v 1.2 1996/06/23 14:30:38 deraadt Exp $
+.\" $OpenBSD: 3.t,v 1.3 1996/10/12 03:06:55 tholo Exp $
.\" $NetBSD: 3.t,v 1.2 1995/03/18 14:56:10 cgd Exp $
.\"
.\" Copyright (c) 1982, 1993
@@ -347,6 +347,19 @@ will remove that directory entry.
Again,
this condition can only arise when there has been a hardware failure.
.PP
+.I Fsck
+also checks for directories with unallocated blocks (holes).
+Such directories should never be created.
+When found,
+.I fsck
+will prompt the user to adjust the length of the offending directory
+which is done by shortening the size of the directory to the end of the
+last allocated block preceeding the hole.
+Unfortunately, this means that another Phase 1 run has to be done.
+.I Fsck
+will remind the user to rerun fsck after repairing a
+directory containing an unallocated block.
+.PP
If a directory entry inode number references
outside the inode list, then
.I fsck