home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!uwm.edu!ogicse!pnl-oracle!d3c724
- From: David Cowley
- Newsgroups: comp.os.vms
- Subject: LBN => Filename / FID => Filename ??
- Keywords: lbn, fid, indexf.sys
- Message-ID: <1992Aug17.165506.21539@oracle.pnl.gov>
- Date: 17 Aug 92 16:55:06 GMT
- Article-I.D.: oracle.1992Aug17.165506.21539
- Sender: news@oracle.pnl.gov
- Organization: Battelle Pacific Northwest Labs, Richland, WA
- Lines: 49
- Originator: d3c724@baldrick.pnl.gov
-
-
- Hmm...
-
- Does anyone have a way to take a logical block number (LBN) and determine
- which file it's part of? This came up because bad block replacements are
- reported in the error log by LBN, and I can't investigate if I don't have a
- filename. The same goes for the File IDs (e.g. (135,1,0) ) reported by
- utilities like ANALYZE/DISK.
-
- I went sleuthing around yesterday, and didn't find anything that would take a
- FID or LBN and produce the associated filename. I did, however, take a look
- at INDEXF.SYS, and it looks to me as if the answer lies there. It doesn't
- seem to me that it would be too tough (on a quiet disk) to grind through
- the file headers in INDEXF.SYS and snoop in the FID field, or the retrieval
- pointers in the map area, and cough up a filename once the appropriate FID
- or LBN is found.
-
- Granted, this isn't a pretty thing to do, and would be time consuming on large
- disks, but I think it would be very worthwhile. Unfortunately, I was unable
- to come up with any information on the format of the INDEXF.SYS, and don't
- intend to stumble around blindly in such a critical file. So I am wondering
- if anyone can send me or point me at:
-
- 1.) *Source* for comitting the above atrocities (I'm not allowed to
- run binaries that don't come from an established vendor).
- Failing that, does anybody have:
-
- 2.) Information on the format of and structures in the INDEXF.SYS
- file? I'm looking at how to find the first real file header
- in INDEXF.SYS, and where and how the retrieval pointers are
- stored in the map area in each file header.
-
- I'd be fairly willing to bet that such things are on a DECUS tape somewhere,
- but we don't glom onto those as consistently as we used to a few years ago.
- If you have any clues, please e-mail me, or post to this group if you think
- everybody would be interested.
-
- Thanks in advance,
-
- - Dave Cowley
-
-
- -------------------------------------------------------------------------------
- David Cowley Internet: de_cowley@pnl.gov
- Unix/VMS System Manager Voice: (509) 375-2260
- Production Systems MSIN K7-53 Fax: (509) 375-6703
- Battelle Northwest
- PO Box 999
- Richland, WA 99352
-