Subject: Re: UFS2 problem?
To: None <current-users@netbsd.org>
From: Takahiro Kambe <taca@back-street.net>
List: current-users
Date: 04/08/2003 00:03:34
In message <20030407001424.A10971@vaasje.org>
	on Mon, 7 Apr 2003 00:14:24 +0200,
	Frank van der Linden <fvdl@netbsd.org> wrote:
> What I'm advising everyone who ran a kernel with sys/ufs/ffs/ffs_vfsops.c
> with rev. 1.110 (i.e. the version of the UFS2 commit), is to:
> 
> 	* upgrade your kernel to the latest sources
> 	* boot single user
> 	* force an fsck on all filesystems
> 	* reboot
> 
> After that, things should be ok. I had the problem of a corrupted
Still I have no luck.

% ident /nnetbsd | egrep ffs_vfsops.c
     $NetBSD: ffs_vfsops.c,v 1.111 2003/04/05 13:37:36 fvdl Exp $

With this new kernel, I got:

% ls -l /usr/X11R6/lib > /dev/null
ls: libICE.a: Bad file descriptor
ls: libICE.so: Bad file descriptor
...
ls: pkgconfig: Bad file descriptor

On newer kernel and latest fsck_ffs(8) (2003/04/07 01:48 UTC),
"fsck -f /dev/rwd0i" reports:

DIRECTORY taca/Mail/tech-kern: CONTAINS EMPTY BLOCKS ...

I lost this "teck-kern" directory when I fixed it before, so I stopped
fsck.  (newer compiled dump(8) core dumped...)

With older (current using) kenrel and old fsck_ffs(8), this file
system dosen't have any problem.

-- 
Takahiro Kambe <taca@back-street.net>