[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@xxxxxxxxxx>
References: <4905A3FB.6080709@xxxxxxxxxx> <20081027114945.GE4985@disturbed> <4905B48A.8010108@xxxxxxxxxx>
User-agent: Thunderbird (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>