On Wed, Feb 15, 2006 at 07:41:14AM -0600, Dave Kleikamp wrote:
> On Wed, 2006-02-15 at 04:15 -0500, Sonny Rao wrote:
> > > I may be able to throw together a little utility to go through all the
> > > files looking for the blocks it complained about.  It shouldn't be too
> > > hard.  I'll try to get it done today.
> > > 
> > > > dm-5 is an lvm volume that contains dm-0 though dm-4.  Each of dm-0
> > > > though dm-4 is a 1TB lun with two paths (eg. 8:16 and 8:96).
> > > 
> > 
> > Hi Shaggy, have you done this yet?  If not I'd like to tackle it (I
> > have some of it done already).
> 
> I got part of it done.  From here you can either further modify what
> I've done to look for specific blocks within each extent, or parse the
> output to do the same.
> 
> Here's what I sent Chris offline:
> 
> I don't have it all done, but I did make a utility that dumps the
> extents for a given list of inodes.  You can call it like this:
> find . | xargs ls -i | dump_extents /dev/dm-5 > output.file
> 
> You'd still need to search through the output for the extents that
> include the blocks in the dmesg output.
> 
> In order to reuse code from jfs_debugfs, I built it as a patch to
> jfsutils-1.1.10.  I've attached the binary, but you should be able to
> build it from the jfsutils source as well.

Ah cool, yeah I was doing something similar, I have a patch to
jfsutils to build a tool called "jfs_blk2file" (probably should be
called blk2inum) 

Probably, I should make a patch which just adds a command to
jfs_debugfs to do this translation, do you think that would be a
worthwhile project?

Sonny





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to