home *** CD-ROM | disk | FTP | other *** search
-
- S I Z E R D O C
-
-
- © Gérard CORNU
-
-
- version 0.81 8-Jan-93
-
- Compiled with SAS/C® 6.1
-
- Sizer is ©1992 Gérard Cornu, but freely redistributable. When re-
- distributing don't forget to include this unmodified doc file. And
- don't charge more than the cost of an AmigaLibdisk from Fred FISH.
-
- This program cannot be used for commercial purposes, or included on
- magazine's cover disks, apart from "AMIGA DP" (the french AmigaNews
- sister's magazine exclusively dedicated to Amiga PD), without the
- written permission of the author.
-
- Peter Miles (see end of file) is certainly allowed to include it in
- the ICPUG Amiga library.
-
- Fred Fish is obviously allowed to include it in its unique AmigaLibDisk
- library.
-
- Thierry Colin (Amiga DP / DPAT) is authorised to include it in the french
- speaking Amiga PD collection "DPAT" (Domaine Public Amiga Toulouse).
-
-
- What is sizer ?
- ~~~~~~~~~~~~~~~
- Sizer is a quick and small CLI utility for getting the size of any
- devices, files, directories or 'assigns'. It accepts multiple
- arguments, with a limit of 30 (cf. SAS/C 6 docs).
-
- Sizer is best used with a directory utility.
-
- I have been developing and using it under KS 37.175 and WB 38.35 only.
- I don't see any reason why it shouldn't work with newer release of
- AmigaOs.
-
-
- How to use it?
- ~~~~~~~~~~~~~~
- The format is as follows:.
-
- sizer [-v] {< device | directory | assign | file>}
-
- The -v option (verbose) is for displaying the filenames being sized.
-
- This gives much slower results, obviously.
-
- examples:
-
- sizer dh0:
-
- sizer -v MyDirectory
-
- sizer tools/mytooldir
-
- sizer ram: sys:c another_device: etc...
-
- Don't use the '/' at the end of a directory name, but on the
- other hand, you MUST use ':' at the end of a device or assigned
- directory.
-
- To break Sizer, just press 'CTRL C'. If Sizer is sizing verbosly,
- with the -v option, you have to hold the CTRL key and keep hitting
- the C key repeatedly, until it finally decides to break, it will,
- if you insist enough!
-
- As I said earlier, it is best used with a directory utility. Even
- better with one which sends all the selected arguments at once.
-
- I shall give you the settings I have used to configure it with
- DirWork 1.62 (shareware © 1990-92 Chris Hames):
-
- - Go in the configuration editor (1st top left menu).
-
- - Click on an unused button (in the top bank).
-
- - and fill the following boxes:
-
- Button text: Size (or whatever name you fancy!)
-
- Function: u (lower case)
-
- Selection: B (Upper case)
-
- SpecialOp: , (comma)
-
- Option: p (lower case)
-
- Arguments: (full path and name for sizer, plus -v if you
- like slowliness!.
-
- Dont use 'Run >NIL:', RunBack or even 'Run'.
-
- - Click on 'Quit and use'
-
- - Once back to DirWork, save the new configuration.
-
- - That's it!
-
- - Now pick any dir or file in one of the file lists, then click
- on the 'Size' button. A window should open and 'sizer' will
- display something like this, apart from the right hand side
- column ;-)
-
- Block size: 512 bytes, for DH0:Locale
-
- Total number of files 60 1st line
- Total number of directories 11 2nd "
- Total number of bytes in files 180108 3rd "
- Actual number of blocks used 463 4th "
-
- Actual size occupied : 237056 bytes, 231 K.
-
-
- I wont explain the 1st line even if I have to say that it includes
- all the files in all the subdirectories, for the second one, of
- course it includes all the sub-directories and sub-sub-sub...
- directories (if any!) plus the dir(s) given as argument(s).
-
- The 3rd line tells you the total number of bytes of all the files
- and the 4th the actual number of blocks all the files, directories,
- subdirectories, sub-sub...directories occupy on their respective
- device. This total includes the user directory blocks, the file
- header blocks as well as the file list blocks.
-
- Suppose you have 'sized' a directory containing 10 files with
- a size of 256 bytes each. The 3rd line will tell you 2560 bytes,
- but the 4th will say 21 blocks, 10 for the files themselves, plus
- 1 block for the 'File Header' for each file, plus 1 block for the dir
- itself, which gives a total of 21 blocks. Suppose the device on
- which those files are kept have a real block size of 512 bytes,
- the total occupied will be 10752 bytes.
-
- For each item it scans, 'sizer' looks at the block size of the
- containing device and calculate the occupied size accordingly.
-
- The block size given in the heading of the results is the data block
- size.
-
- **************************************************************************
- * *
- * Please note that while the data block size for OFS is 488 bytes, this *
- * is the 'usable' size, the 'raw' size is 512 bytes. A non HD floppy *
- * has 1758 usable blocks so a raw size of 1758 x 512 = 900096 bytes or *
- * 879 KB, this doesn't mean that all that is available for your data. *
- * Some of this is used by 'user direcory', 'file header'and 'file list' *
- * blocks. And if you are using OFS (OldFileSystem) for each block of *
- * data, 24 bytes are used by the filing system. *
- * *
- **************************************************************************
-
- BTW, using sizer, I discovered that the block size for the Ram: disk
- is actually 1024 bytes (with KickStart 37.175). Have a go at sizing
- your env: dir...
- Most other devices, hard disks, floppies have an actual block size
- of 512 bytes, but I have heard (read!) one might be able to change
- the block size with the new FastFileSystems.
-
-
- WARNING:
- ~~~~~~~~
- This version of Sizer doesn't work with KS 1.3 or below.
-
- A quick word about Sizer and links. Personally I don't use links,
- yet, I didn't get time to look at them! So Sizer has not been tested
- with soft or hard links. But don't hesitate to give me any information
- about them and Sizer's behaviour.
-
-
- Credits!
- ~~~~~~~~
- This little utility was written with GREAT help from an article by
- Paul OVERAA published by Amiga Format in the december 1990 issue,
- page 209+.
-
- Sizer was written for myself, to help me file all the stuff (*freely
- redistributable*) that I got from the great Peter MILES ¤
-
-
- |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
- | Send any bug report, compliment ;-), dark chocolate (noir!), freely |
- | distributable software, 16 Gb hard disks, A3 48 bits colour scanners,|
- | brand new AMIGA 6000 with Alpha CPU, etc... |
- | |
- | OR SIMPLY A POST CARD to: |
- | |
- | Gérard CORNU |
- | 11 avenue Edouard Aynard |
- | 69130 ECULLY |
- | |
- | FRANCE. |
- | |
- | |
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-
-
- Have plenty of nice days! ... me too!
-
-
-
- ¤ Peter Miles: ICPUG Amiga library organiser, (among other
- ~~~~~~~~~~~~ responsibilities!).
-
- ICPUG is the one and only Independent Commodore Products Users Group.
-
- ICPUG is a non-profit making volontary group run by its members
- for its members.
-
- To become a member of this brilliant club contact:
-
- Jack COHEN, ICPUG Membership secretary, P.O. Box 1309,
- LONDON, N3 2UT, ENGLAND.
-
-
-
-