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 >
Wrap
Text File
|
1992-11-21
|
2KB
|
82 lines
Blocks
******
Documentation by Thies Wellpott
(excuse my bad English, please)
1. Copyright
************
Blocks is public domain, do with it what you want but be fair and include
"Blocks", "Blocks.doc" and "Blocks.c" with your distribution.
2. Warrenty
***********
YOU USE THIS PROGRAM COMPLETELY ON YOUR OWN RISK! If you destroy any file,
your computer, your car or even the whole universe or any part of it while
using it, do not blame me, it is not my fault!
3. Introduction
***************
I do not know any program that gives me the number of blocks that are
REALLY used by a file (on a disk). The file system (NFS and FFS) uses data
blocks, the file header block AND file list blocks (how longer the file how
more). List just gives the number of data blocks needed. Blocks gives you
the REAL number of blocks used by a file.
4. Usage
********
Blocks is runnable only from the CLI/Shell. It should run with every
Kickstart version. If you start Blocks with no or wrong arguments or with a
"?" as the first argument you will get a usage info:
¢4mBlocks V1.10 (29.06.92)¢0m by Thies Wellpott
Usage: Blocks <file>|<bytes>
You may give a decimal number or a file name as argument.
Sometimes Seneca said: "Lang ist der Weg durch Lehren, kurz und wirksam
durch Beispiele." (Sorry, no english translation) I will follow this proverb.
1> Blocks c:dir
c:dir has 3440 byte(s) and needs
NFS (488 bytes per block): 9 block(s)
FFS (512 bytes per block): 8 block(s)
1> Blocks c:ed
c:ed has 25044 byte(s) and needs
NFS (488 bytes per block): 53 block(s)
FFS (512 bytes per block): 50 block(s)
1> Blocks 123456
123456 byte(s) need
NFS (488 bytes per block): 257 block(s)
FFS (512 bytes per block): 246 block(s)
Send bug reports, hints, ideas and 68040-cards :-) to:
Thies Wellpott
Moorhauser Weg 14
2948 Schortens 1
Germany
(no e-mail, sorry)