From owner-freebsd-current Sat Jul 28 15: 6:26 2001 Delivered-To: freebsd-current@freebsd.org Received: from femail44.sdc1.sfba.home.com (femail44.sdc1.sfba.home.com [24.254.60.38]) by hub.freebsd.org (Postfix) with ESMTP id 7BBCA37B401 for ; Sat, 28 Jul 2001 15:06:24 -0700 (PDT) (envelope-from mdharnois@home.com) Received: from c1030098-a.wtrlo1.ia.home.com ([24.6.200.230]) by femail44.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010728220624.JHGU28154.femail44.sdc1.sfba.home.com@c1030098-a.wtrlo1.ia.home.com> for ; Sat, 28 Jul 2001 15:06:24 -0700 Received: by c1030098-a.wtrlo1.ia.home.com (Postfix, from userid 1001) id 2C38D14A02; Sat, 28 Jul 2001 17:07:52 -0500 (CDT) To: Kirk McKusick Cc: Ian Dowse , freebsd-current@freebsd.org Subject: Re: filesystem errors Keywords: entry,mckusick,ino,directory References: <200107281948.f6SJmso06543@beastie.mckusick.com> From: Michael Harnois Date: Sat, 28 Jul 2001 17:07:52 -0500 In-Reply-To: <200107281948.f6SJmso06543@beastie.mckusick.com> (Kirk McKusick's message of "Sat, 28 Jul 2001 12:48:54 -0700") Message-ID: <861yn0907b.fsf@mharnois.workgroup.net> Lines: 22 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.5 (anise) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 28 Jul 2001 12:48:54 -0700, Kirk McKusick said: > FFS will never set a directory ino == 0 at a location other than > the first entry in a directory, but fsck will do so to get rid > of an unwanted entry. The readdir routines know to skip over an > ino == 0 entry no matter where in the directory it is found, so > applications will never see such entries. It would be a fair > amount of work to change fsck to `do the right thing', as the > checking code is given only the current entry with which to > work. I am of the opinion that you should simply accept that > mid-directory block ino == 0 is acceptable rather than trying to > `fix' the problem. I don't have sufficient technical knowledge to know which of you is right; I would just ask that filesystem corruption caused by restarting from a hung system not cause a panic . -- Michael D. Harnois bilocational bivocational Washburn, Iowa Minneapolis, Minnesota Hanlon's Razor: Never attribute to malice that which is adequately explained by stupidity. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message