home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sun / misc / 3803 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.9 KB

  1. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.sys.sun.misc
  4. Subject: Re: Why does OW leave all kind of garbage in tmp?
  5. Date: 20 Aug 1992 16:46:58 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 31
  8. Message-ID: <170ia2INNo6g@early-bird.think.com>
  9. References: <1992Aug17.152726.21925@hal.com> <1992Aug18.112409.24335@lokkur.dexter.mi.us> <1992Aug20.010446.24383@BofA.com>
  10. NNTP-Posting-Host: telecaster.think.com
  11.  
  12. In article <1992Aug20.010446.24383@BofA.com> karl@BofA.com (Karl Nicholas) writes:
  13. >In article <1992Aug18.112409.24335@lokkur.dexter.mi.us> scs@lokkur.dexter.mi.us (Steve Simmons) writes:
  14. >>ables@hal.com (King Ables) writes:
  15. >>
  16. >>Some systems have a utility to create lost+found directories with all
  17. >>the empty slots.  Suns don't appear to (or its somewhere I haven't looked),
  18. >>but you can do the same job with the csh commands:
  19.  
  20. I don't know about a separate command to do it, but when newfs creates a
  21. file system it appears to put all the empty slots in lost+found.  I just
  22. looked at a few of our file systems, and their lost+found directories are
  23. 8192 bytes long.
  24.  
  25. >>    mkdir lost+found
  26. >>    cd lost+found
  27. >>    touch {0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
  28. >>    rm *
  29. >>This will create 1000 slots, which is probably sufficient.  :-)
  30. >   I was just going to say that our suns lost+found dirs
  31. >do not have anything in them. 
  32.  
  33. They shouldn't normally have anything in them.  Notice the "rm *" in the
  34. above sequence.  lost+found is supposed to have lots of unused entries.
  35. When fsck needs to reconnect a file (e.g. you answer yes to the
  36. "RECONNECT?" question) it uses one of these slots.  This is done so that
  37. fsck doesn't have to grow the directory file.
  38. -- 
  39. Barry Margolin
  40. System Manager, Thinking Machines Corp.
  41.  
  42. barmar@think.com          {uunet,harvard}!think!barmar
  43.