home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d07xx / d0764.lha / CLI-Tools / Blocks.doc < prev    next >
Text File  |  1992-11-21  |  2KB  |  82 lines

  1.  
  2.                                   Blocks
  3.                                   ******
  4.  
  5.                       Documentation by Thies Wellpott
  6.                       (excuse my bad English, please)
  7.  
  8.  
  9. 1. Copyright
  10. ************
  11.  
  12. Blocks is public domain, do with it what you want but be fair and include
  13. "Blocks", "Blocks.doc" and "Blocks.c" with your distribution.
  14.  
  15.  
  16. 2. Warrenty
  17. ***********
  18.  
  19. YOU USE THIS PROGRAM COMPLETELY ON YOUR OWN RISK! If you destroy any file,
  20. your computer, your car or even the whole universe or any part of it while
  21. using it, do not blame me, it is not my fault!
  22.  
  23.  
  24. 3. Introduction
  25. ***************
  26.  
  27. I do not know any program that gives me the number of blocks that are
  28. REALLY used by a file (on a disk). The file system (NFS and FFS) uses data
  29. blocks, the file header block AND file list blocks (how longer the file how
  30. more). List just gives the number of data blocks needed. Blocks gives you
  31. the REAL number of blocks used by a file.
  32.  
  33.  
  34. 4. Usage
  35. ********
  36.  
  37. Blocks is runnable only from the CLI/Shell. It should run with every
  38. Kickstart version. If you start Blocks with no or wrong arguments or with a
  39. "?" as the first argument you will get a usage info:
  40.  
  41. ¢4mBlocks V1.10 (29.06.92)¢0m by Thies Wellpott
  42.  
  43. Usage: Blocks <file>|<bytes>
  44.  
  45.  
  46. You may give a decimal number or a file name as argument.
  47. Sometimes Seneca said: "Lang ist der Weg durch Lehren, kurz und wirksam
  48. durch Beispiele." (Sorry, no english translation) I will follow this proverb.
  49.  
  50. 1> Blocks c:dir
  51.  
  52. c:dir has 3440 byte(s) and needs
  53. NFS (488 bytes per block): 9 block(s)
  54. FFS (512 bytes per block): 8 block(s)
  55.  
  56.  
  57. 1> Blocks c:ed
  58.  
  59. c:ed has 25044 byte(s) and needs
  60. NFS (488 bytes per block): 53 block(s)
  61. FFS (512 bytes per block): 50 block(s)
  62.  
  63.  
  64. 1> Blocks 123456
  65.  
  66. 123456 byte(s) need
  67. NFS (488 bytes per block): 257 block(s)
  68. FFS (512 bytes per block): 246 block(s)
  69.  
  70.  
  71.  
  72. Send bug reports, hints, ideas and 68040-cards :-) to:
  73.  
  74.         Thies Wellpott
  75.         Moorhauser Weg 14
  76.         2948 Schortens 1
  77.  
  78.         Germany
  79.  
  80.         (no e-mail, sorry)
  81.  
  82.