diff options
| author | Ian Dowse <iedowse@FreeBSD.org> | 2001-07-27 18:45:41 +0000 |
|---|---|---|
| committer | Ian Dowse <iedowse@FreeBSD.org> | 2001-07-27 18:45:41 +0000 |
| commit | 54d6d2dfaf680c98bdf7a6297e1763112c9d55e8 (patch) | |
| tree | 85c130a0c4a66f373b475162c5b26a65ded983ce /sys | |
| parent | 386a59d734ac596019146d25b68dd7151f471948 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/ufs/ufs/ufs_dirhash.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/ufs/ufs/ufs_dirhash.c b/sys/ufs/ufs/ufs_dirhash.c index 1a9262a0601f..e9441cb5211f 100644 --- a/sys/ufs/ufs/ufs_dirhash.c +++ b/sys/ufs/ufs/ufs_dirhash.c @@ -815,8 +815,16 @@ ufsdirhash_checkblock(struct inode *ip, char *buf, doff_t offset) panic("ufsdirhash_checkblock: bad dir"); if (dp->d_ino == 0) { +#if 0 + /* + * XXX entries with d_ino == 0 should only occur + * at the start of a DIRBLKSIZ block. However the + * ufs code is tolerant of such entries at other + * offsets, and fsck does not fix them. + */ if (i != 0) panic("ufsdirhash_checkblock: bad dir inode"); +#endif nfree += dp->d_reclen; continue; } |
