Date: Wed, 31 Aug 2011 23:13:27 +0700 From: Eugene Grosbein <egrosbein@rdtc.ru> To: Adam Vande More <amvandemore@gmail.com> Cc: stable@FreeBSD.org, fs@FreeBSD.org Subject: Re: Unfixable UFS2 corruption Message-ID: <4E5E5DA7.1010802@rdtc.ru> In-Reply-To: <CA%2BtpaK33zRqnzXG23f9ODN2QFFa1o-zr5_jw4Kj%2BkknGj5Wb7w@mail.gmail.com> References: <4E5E46B1.4070408@rdtc.ru> <CA%2BtpaK33zRqnzXG23f9ODN2QFFa1o-zr5_jw4Kj%2BkknGj5Wb7w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
31.08.2011 23:02, Adam Vande More пишет: > Long story short: my /usr/local UFS2 filesystem somehow got corrupted > and "fsck -y" in single user mode does not fix it. > > Not sure if this helps or not but on rare occasion I've had to run fsck twice consecutively to fix a FS. Not this time - fsck does NOT find any problems in this file system. Now I think fsck_ffs needs a patch: --- sbin/fsck_ffs/dir.c.orig 2011-08-31 22:54:23.000000000 +0700 +++ sbin/fsck_ffs/dir.c 2011-08-31 22:54:48.000000000 +0700 @@ -225,7 +225,7 @@ type = dp->d_type; if (dp->d_reclen < size || idesc->id_filesize < size || - namlen > MAXNAMLEN || + namlen == 0 || namlen > MAXNAMLEN || type > 15) goto bad; for (cp = dp->d_name, size = 0; size < namlen; size++) Comments? Eugene Grosbein
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E5E5DA7.1010802>