diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-10-12 03:06:56 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-10-12 03:06:56 +0000 |
commit | 1ee11199963034918134473035e0401509258461 (patch) | |
tree | 56c90f6eb311a194b65b6cd8ca297da1e14dcc79 /sbin/fsck_ffs/fsck.h | |
parent | 2163925a12b34eb2ee6d9efc4e3dd8a019630d21 (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/fsck.h')
-rw-r--r-- | sbin/fsck_ffs/fsck.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h index 2b6a72a3d1f..f227e378d7b 100644 --- a/sbin/fsck_ffs/fsck.h +++ b/sbin/fsck_ffs/fsck.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fsck.h,v 1.2 1996/06/23 14:30:28 deraadt Exp $ */ +/* $OpenBSD: fsck.h,v 1.3 1996/10/12 03:06:53 tholo Exp $ */ /* $NetBSD: fsck.h,v 1.10 1995/04/12 21:24:09 mycroft Exp $ */ /* @@ -182,6 +182,7 @@ char skipclean; /* skip clean file systems if preening */ int fsmodified; /* 1 => write done to file system */ int fsreadfd; /* file descriptor for reading file system */ int fswritefd; /* file descriptor for writing file system */ +int rerun; /* rerun fsck. Only used in non-preen mode */ daddr_t maxfsblock; /* number of blocks in the file system */ char *blockmap; /* ptr to primary blk allocation map */ |