Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Aug 2011 22:20:55 +0700
From:      Eugene Grosbein <egrosbein@rdtc.ru>
To:        FreeBSD Stable <freebsd-stable@freebsd.org>, fs@freebsd.org
Subject:   Re: Unfixable UFS2 corruption
Message-ID:  <4E5E5157.7050706@rdtc.ru>
In-Reply-To: <4E5E46B1.4070408@rdtc.ru>
References:  <4E5E46B1.4070408@rdtc.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
31.08.2011 21:35, Eugene Grosbein пишет:

> # ls -al /usr/local/obj/usr/local/src/secure/lib/libssh
> ls: : No such file or directory
> total 8
> drwxr-xr-x  2 root  wheel  4608 Aug 30 01:28 .
> drwxr-xr-x  3 root  wheel   512 Aug 30 01:28 ..
> 
> # rm -rf /usr/local/obj/usr/local/src/secure/lib/libssh
> rm: /usr/local/obj/usr/local/src/secure/lib/libssh: Directory not empty
> 
> As I've said, I cold booted this FreeBSD 8.2-STABLE system to single user mode
> where all file systems are not mounted (except root) and ran fsck -y /usr/local
> It found no errors and said it is CLEAN. The problem still persists.
> 
> I've written small program and it said me this directory contains third file
> (besides <.> and <..> entries) having zero file length.

Not file but file name length is zero. I've just found that
dircheck() function in src/sbin/fsck_ffs/dir.c simply does not check
if d_namlen is zero as it should, shouldn't it?

Eugene Grosbein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E5E5157.7050706>