xfs
[Top] [All Lists]

Re: Map a disk LBA to filename?

To: Carsten Aulbert <carsten.aulbert@xxxxxxxxxx>
Subject: Re: Map a disk LBA to filename?
From: Michal Soltys <nozo@xxxxxxxxxxxxxx>
Date: Mon, 27 Oct 2008 14:03:15 +0100
Cc: xfs@xxxxxxxxxxx
In-reply-to: <4905B48A.8010108@aei.mpg.de>
References: <4905A3FB.6080709@aei.mpg.de> <20081027114945.GE4985@disturbed> <4905B48A.8010108@aei.mpg.de>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.17 (Windows/20080914)
Carsten Aulbert wrote:

Dave Chinner wrote:
Use xfs_bmap to find the location on disk of the extents in each
file. Recurse over the filesystem until you find the file that owns
the block that went bad.

Sounds like a tedious but doable route to take.


Wouldn't something like (under xfs_db) :

getblock -b #block -n
ncheck -i #inode

where required #inode is reported by getblock

do the thing ?


<Prev in Thread] Current Thread [Next in Thread>