home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / vms / 13726 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  2.5 KB

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