Date: Wed, 22 Aug 2001 01:56:41 +0100 From: Ian Dowse <iedowse@maths.tcd.ie> To: Ollivier Robert <roberto@keltia.freenix.fr> Cc: FreeBSD Current Users' list <freebsd-current@FreeBSD.ORG> Subject: Re: Panic with latest current/UFS_DIRHASH Message-ID: <200108220156.aa44790@salmon.maths.tcd.ie> In-Reply-To: Your message of "Tue, 21 Aug 2001 17:15:10 %2B0200." <20010821171510.A75116@tara.freenix.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010821171510.A75116@tara.freenix.org>, Ollivier Robert writes: >According to Ollivier Robert: >> Just upgraded my laptop to the latest current and during installworld, got >> this panic: >> >> panic: ufsdirhash_findslot: 'ka_JP.Shift_JIS' not found Thanks for the bug report - see my other mail to -current for further details, but the quick answer is that dirhash has a bug that is triggered by the odd directory entries that fsck sometimes leaves behind. This short patch should fix it: Ian Index: ufs_lookup.c =================================================================== RCS file: /FreeBSD/FreeBSD-CVS/src/sys/ufs/ufs/ufs_lookup.c,v retrieving revision 1.52 diff -u -r1.52 ufs_lookup.c --- ufs_lookup.c 2001/08/18 03:08:48 1.52 +++ ufs_lookup.c 2001/08/22 00:27:17 @@ -884,7 +884,7 @@ dsize = DIRSIZ(OFSFMT(dvp), nep); spacefree += nep->d_reclen - dsize; #ifdef UFS_DIRHASH - if (dp->i_dirhash != NULL) + if (dp->i_dirhash != NULL && nep->d_ino) ufsdirhash_move(dp, nep, dp->i_offset + loc, dp->i_offset + ((char *)ep - dirbuf)); #endif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200108220156.aa44790>