home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / bsd / 10514 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.8 KB  |  41 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!sci34hub!gary
  3. From: gary@sci34hub.sci.com (Gary Heston)
  4. Subject: Re: Almost Free Symbolic Links (source code)
  5. Message-ID: <1992Dec21.184856.2062@sci34hub.sci.com>
  6. Reply-To: gary@sci34hub.sci.com (Gary Heston)
  7. Organization: SCI Systems, Inc., Huntsville, Al.
  8. References: <39777@hoptoad.uucp> <id.J2UV.H5K@ferranti.com> <DERAADT.92Dec17125257@newt.newt.cuc.ab.ca>
  9. Date: Mon, 21 Dec 1992 18:48:56 GMT
  10. Lines: 29
  11.  
  12. In article <DERAADT.92Dec17125257@newt.newt.cuc.ab.ca> deraadt@newt.cuc.ab.ca (Theo de Raadt) writes:
  13. |In article <id.J2UV.H5K@ferranti.com> peter@ferranti.com (peter da silva) writes:
  14. |   In article <39777@hoptoad.uucp> curt@hoptoad.uucp (Curt Mayer) writes:
  15. |   > this cruddy but complete hack answers one of the objections to symlinks:
  16. |   > that they are slow, and cost an entire frag. symlinks of less than length
  17. |   > 60 are stored in the inode itself.
  18.  
  19. |   How about generalizing this to put ALL files < 60 bytes in the inode, not
  20. |   just symlinks?
  21.  
  22. |Because it screws up the alignment all the way through the file. It's nice
  23. |to know that going a multiple of st.st_blocksize into the file and reading
  24. |a multiple of st.st_blocksize bytes is going to be faster.
  25.  
  26. No, he ask about *file < 60 characters*, not the *first 60 characters of 
  27. a file*.
  28.  
  29. A damn good idea too, I think. All those little one-line shell scripts,
  30. the 20 character files (/etc/myname comes to mind) would no longer eat
  31. a whole block, and access time would be *much* faster.
  32.  
  33. Now, if I can just figure out why 386bsd is hanging up on an fsck with
  34. the rll controller....
  35.  
  36. -- 
  37. Gary Heston    SCI Systems, Inc.  gary@sci34hub.sci.com   site admin
  38. The Chairman of the Board and the CFO speak for SCI. I'm neither.
  39. "Data sheet: HSN-3000 Nuclear Event Detector. The [NED] senses the gamma
  40. radiation pulse [from a] nuclear weapon." As if we wouldn't notice...
  41.