home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / programm / 4301 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.8 KB

  1. Xref: sparky comp.unix.programmer:4301 comp.unix.internals:1691 comp.sys.hp:9299
  2. Path: sparky!uunet!mcsun!uknet!strath-cs!baird!jim
  3. From: jim@cs.strath.ac.uk (Jim Reid)
  4. Newsgroups: comp.unix.programmer,comp.unix.internals,comp.sys.hp
  5. Subject: Re: inode to filename
  6. Message-ID: <JIM.92Aug14122954@hunter.cs.strath.ac.uk>
  7. Date: 14 Aug 92 11:29:54 GMT
  8. References: <1992Aug06.172513.4063@CS.ORST.EDU> <1992Aug07.131925.10902@bnr.uk>
  9.     <1992Aug11.164753.13726@ssd.ukpoit.co.uk>
  10.     <1992Aug12.144032.6417@bwdls61.bnr.ca>
  11.     <1992Aug12.181707.23506@gateway.novell.com>
  12.     <1992Aug13.135735.6607@bwdls61.bnr.ca>
  13. Sender: news@cs.strath.ac.uk
  14. Organization: Computer Science Dept., Strathclyde Univ., Glasgow, Scotland.
  15. Lines: 21
  16. Nntp-Posting-Host: hunter
  17. In-reply-to: mleech@bnr.ca's message of 13 Aug 92 13:57:35 GMT
  18.  
  19. In article <1992Aug13.135735.6607@bwdls61.bnr.ca> mleech@bnr.ca (Marcus Leech) writes:
  20.  
  21.    Granted there isn't always a 1 to 1 relationship between a files internal
  22.      "handle", and its name.  In the real world, programs refer to files by
  23.      name, and in the real world, system managers frequently need this
  24.      information either to debug some system process, or because they want to
  25.      take a disk offline, and they need to know which processes have *which*
  26.      files open on the disk.  You can avoid having to do the reverse mapping
  27.      simply by storing the name information in such a way as to be generally
  28.      useful, and not cost very much.
  29.  
  30. Hmmm. On some machine there could be thousands of active files. Having
  31. the kernel maintain a list of those filenames might cost more than you
  32. think. [If it's a choice between assigning 100K of kernel memory to
  33. I/O buffers or process page tables or a list of active filenames, I
  34. wouldn't choose the list of filenames.]
  35.  
  36. What would such a scheme do in the case of a process which unlinks an
  37. open file?
  38.  
  39.         Jim
  40.