home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / bsd / 10457 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.7 KB  |  61 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
  3. From: terry@cs.weber.edu (A Wizard of Earth C)
  4. Subject: Re: Dumb Question: Why 512 byte block?
  5. Message-ID: <1992Dec20.025733.155@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Organization: University of Utah Computer Center
  8. References: <1992Dec18.005050.20594@decuac.dec.com> <CGD.92Dec19000739@eden.CS.Berkeley.EDU>
  9. Date: Sun, 20 Dec 92 02:57:33 GMT
  10. Lines: 49
  11.  
  12. In article <CGD.92Dec19000739@eden.CS.Berkeley.EDU>, cgd@eden.CS.Berkeley.EDU (Chris G. Demetriou) writes:
  13. |> In article <1992Dec18.235623.27538@fcom.cc.utah.edu> terry@cs.weber.edu (A Wizard of Earth C) writes:
  14. |> >You can't split blocks between files.  A block is, by definition, the
  15. |> >smallest possible allocation unit.  Thin about the case where you have
  16. |> >a 1 byte file and a 1 block - 1 byte file; what would you do when
  17. |> >adding one or two characters to the first (1 Byte)?  TReallocate?  Shift
  18. |> >and reallocate for the last byte of the second file?
  19. |> 
  20. |> sorry.  you guys *both* sound confused.  first of all, i've never
  21. |> seen a FFS with 1k blocks; the most "standard" configuration
  22. |> is 4k or 8k blocks, with 8 fragments.
  23. |> 
  24. |> this yields fragments of (obviously) 512bytes and 1k.
  25. |> 
  26. |> you can't split *fragments* between one file.
  27. |> you *can* split blocks between one file, but this tends not to happen,
  28. |> because the FFS doesn't do this unless it's necessary.
  29.  
  30.  
  31. I totally mixed up blocks and fragments ...duh!  The original posting was
  32. talking about the "-k" option of the "df" command, and that's why I was
  33. thinking of blocks (ie: "512-blks").
  34.  
  35. While I was looking at the du output:
  36.  
  37.     hecate 1 % df
  38.     Filesystem        512-blks    used   avail capacity  Mounted on
  39.     /dev/wd0a           591200  437684   94396    82%    /
  40.     icarus:/home       1192464 1133390   35226    97%    /icarus
  41.     einstein.att:/dsk2 2547712 1887656  410872    82%    /X11R4
  42.     hecate 2 %
  43.  
  44. I should have thought about the fsck, which reports _fragmentation_ of the
  45. file system.
  46.  
  47. I had been working for some time on a SVR4 UFS implementation, and I fear my
  48. wheels were still jarred loose at the time I posted.  ;-).
  49.  
  50.  
  51.                     Terry Lambert
  52.                     terry@icarus.weber.edu
  53.                     terry_lambert@novell.com
  54. ---
  55. Any opinions in this posting are my own and not those of my present
  56. or previous employers.
  57. -------------------------------------------------------------------------------
  58.                                         "I have an 8 user poetic license" - me
  59.  Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
  60. -------------------------------------------------------------------------------
  61.