home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / bsd / 10442 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!wjin
  2. From: wjin@cs.uh.edu (W. Woody Jin)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: Dumb Question: Why 512 byte block?
  5. Date: 19 Dec 1992 20:04:32 GMT
  6. Organization: University of Houston
  7. Lines: 40
  8. Message-ID: <1gvv8gINN80e@menudo.uh.edu>
  9. References: <1992Dec18.030833.7395@fcom.cc.utah.edu> <1gt736INNjje@menudo.uh.edu> <1992Dec18.235623.27538@fcom.cc.utah.edu>
  10. NNTP-Posting-Host: rodin.cs.uh.edu
  11.  
  12. In article <1992Dec18.235623.27538@fcom.cc.utah.edu> terry@cs.weber.edu (A Wizard of Earth C) writes:
  13. >
  14. >You can't split blocks between files.  
  15.  
  16. Yes, you can.
  17. For example, you may have 4K size block with 512 byte fragment size.
  18.  
  19. >A block is, by definition, the
  20. >smallest possible allocation unit.  Thin about the case where you have
  21. >a 1 byte file and a 1 block - 1 byte file; what would you do when
  22. >adding one or two characters to the first (1 Byte)?  TReallocate?  Shift
  23. >and reallocate for the last byte of the second file?
  24. >
  25. >But... you're right that it doesn't work the way I've shown... thought
  26. >for sure I'd get bombarded on this one:
  27. >
  28. >Consider the most ridiculous possible situation:  I have a 1G disk with
  29. >a 1G blocking factor (impossible without rewriting the buffering code).
  30. >
  31. >How many files can I have on the disk? (Ignore the blocks allocated to inodes
  32. >and directoryies 8-P).
  33. >
  34. >The answer is "1"... even if it only has 1 byte in it.
  35.  
  36. In this case, if you have 512 byte fragment size, you use only one
  37. fragment which is 512 byte.  And you must have 1G of buffer memory.
  38.  
  39. BTW, could anyone clarify whether 386BSD uses the Fast Unix File System
  40. which is described in "A Fast File System For Unix" by McKusick, Joy, Leffler,
  41. and Fabry (1984 ACM Tran. on Computer System) ?
  42.  
  43. -- 
  44. ____   ____  ____ ____________________________________ (___) _________________
  45. |  |   |  |  |  |  W. Woody Jin (wjin@cs.uh.edu)       (o o)      Moo.... 
  46. |  |   |  |__|  |  PhD Student. Research Asst.  o=======\ /  I'm  a Cow Lover.
  47. |  |   |        |  Dept. of Computer Science   / |     ||O   My wife  was born
  48. \  |---|  |--|  |  University of Houston      `  ||'---||    in Cow year. Mooo
  49.  \____/|__|  |__| _______________________________^^    ^^_____________________
  50.  
  51.  
  52.