In message <[EMAIL PROTECTED]>, 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:


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;
-               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));

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to