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

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!psinntp!ficc!peter
  3. From: peter@ferranti.com (peter da silva)
  4. Subject: Re: Almost Free Symbolic Links (source code)
  5. Message-ID: <id.DQ0W.J7I@ferranti.com>
  6. Organization: Xenix Support, FICC
  7. References: <39777@hoptoad.uucp> <id.J2UV.H5K@ferranti.com> <DERAADT.92Dec17125257@newt.newt.cuc.ab.ca>
  8. Date: Tue, 22 Dec 1992 00:44:37 GMT
  9. Lines: 18
  10.  
  11. In article <DERAADT.92Dec17125257@newt.newt.cuc.ab.ca> deraadt@newt.cuc.ab.ca (Theo de Raadt) writes:
  12. >    How about generalizing this to put ALL files < 60 bytes in the inode, not
  13. >    just symlinks?
  14.  
  15. > Because it screws up the alignment all the way through the file.
  16.  
  17. How do you get that? Files < 60 bytes would start in the inode (or files
  18. less than 39 or 52 or however many bytes are available in the block pointers),
  19. and longer files would start in the first direct block. When you wrote byte 61
  20. the OS would allocate the first direct block and copy it in.
  21.  
  22. It could even optimize by only moving the file contents to the inode on file
  23. close.
  24. -- 
  25. Peter da Silva                                            `-_-'
  26. Ferranti International Controls Corporation                'U` 
  27. Sugar Land, TX  77487-5012 USA
  28. +1 713 274 5180                            "Zure otsoa besarkatu al duzu gaur?"
  29.