From owner-freebsd-fs Tue Oct 30 8: 2:20 2001 Delivered-To: freebsd-fs@freebsd.org Received: from robin.mail.pas.earthlink.net (robin.mail.pas.earthlink.net [207.217.120.65]) by hub.freebsd.org (Postfix) with ESMTP id E997937B403 for ; Tue, 30 Oct 2001 08:02:18 -0800 (PST) Received: from dialup-209.245.128.217.dial1.sanjose1.level3.net ([209.245.128.217] helo=mindspring.com) by robin.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 15ybL7-0001bT-00; Tue, 30 Oct 2001 08:02:10 -0800 Message-ID: <3BDECF33.7A280A2E@mindspring.com> Date: Tue, 30 Oct 2001 08:02:59 -0800 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Alexander Leidinger Cc: bde@zeta.org.au, julian@elischer.org, fs@FreeBSD.ORG Subject: Re: physical block no -> name of file (FFS)? References: <200110301300.f9UD0KD05773@Magelan.Leidinger.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Alexander Leidinger wrote: [ ... finding bad blocks, using "backup" ... ] > Yes, this solves my problem (now that I know in which partition the bad > block is). > > But doesn't this need more resources than a dedicated program which only > traverses the metadata? On a busy system it may be worthwile to have > such a program (and I may be willing to write it). The problem is that you will have to exhaustively search 50% of all metadata to find a bad block that's contained in a file, and 100% of all metadata, if it's not contained in a file (for example, if it has been replaced by a spare, or the error occurred during a free of the bad block, and the bad block was in metadata, so it held a reference to non-bad blocks). In any case, you are looking at a reverse lookup problem. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message