From owner-freebsd-questions@FreeBSD.ORG Sun Feb 27 16:19:34 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F79E16A4CE for ; Sun, 27 Feb 2005 16:19:34 +0000 (GMT) Received: from smtp11.wanadoo.fr (smtp11.wanadoo.fr [193.252.22.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 442C743D2F for ; Sun, 27 Feb 2005 16:19:34 +0000 (GMT) (envelope-from atkielski.anthony@wanadoo.fr) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1101.wanadoo.fr (SMTP Server) with ESMTP id EE6751C000B2 for ; Sun, 27 Feb 2005 17:19:32 +0100 (CET) Received: from pix.atkielski.com (ASt-Lambert-111-2-1-3.w81-50.abo.wanadoo.fr [81.50.80.3]) by mwinf1101.wanadoo.fr (SMTP Server) with ESMTP id CC2631C000B0 for ; Sun, 27 Feb 2005 17:19:32 +0100 (CET) X-ME-UUID: 20050227161932836.CC2631C000B0@mwinf1101.wanadoo.fr Date: Sun, 27 Feb 2005 17:19:32 +0100 From: Anthony Atkielski X-Priority: 3 (Normal) Message-ID: <704894374.20050227171932@wanadoo.fr> To: freebsd-questions@freebsd.org In-Reply-To: <20050227155344.GA78232@bsdbox.farid-hajji.net> References: <1561762673.20050227155330@wanadoo.fr> <20050227155344.GA78232@bsdbox.farid-hajji.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: WRITE_DMA errors on SATA drive under 5.3-RELEASE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 16:19:34 -0000 cpghost@cordula.ws writes: > Theoretically, one could use 'fsdb -r' in a scripted manner, to > generate a mapping of file names to blocks (relative to the partition > of the file system you are mapping). Once you have the blocks, you'll > need to do so artithmetics to map those blocks to LBA address ranges > (perhaps via GEOM or using data in disklabels). Finally, you'll have > to locate the range for a particular LBA address and work backwards > up to the inode #, and then to the filename(s) that link to that inode. Sounds complicated. Surely I'm not the first person to wish for such a utility ... in UNIXland, there seems to be a command for just about every conceivable purpose (?). > Perhaps there's already a system utility or port for this? It would be > really useful! I'm mainly worried about exactly what the system was trying to write at the time. It's not clear from the message whether the write succeeded or not. -- Anthony