Xref: utzoo comp.sys.att:5481 unix-pc.general:2198 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!rutgers!bpa!manta!brant From: brant@manta.pha.pa.us (Brant Cheikes) Newsgroups: comp.sys.att,unix-pc.general Subject: From blocks to files (on a UNIXpc) Message-ID: <462@manta.pha.pa.us> Date: 8 Feb 89 18:20:13 GMT Reply-To: brant@manta.pha.pa.us (Brant Cheikes) Organization: Soul of the Gnu Machine, Philadelphia Lines: 12 Given a block number, how can I find out (a) if it's part of a file, and (b) what file it's part of? Why might this be useful? Say you wake up one morning to discover a bad block error in your unix.log. If you knew whether the block was allocated, and what file it was part of, you might be able to avoid having to reformat the disk. Though I'm not sure what effect adding a bad block entry has on the freelist. -- Brant Cheikes University of Pennsylvania, Department of Computer and Information Science brant@manta.pha.pa.us, brant@linc.cis.upenn.edu, bpa!manta!brant