Home » Archimedes archive » Acorn User » AU 1995-07.adf » !Regulars_Regulars » StarInfo/Salt/!BlockSize/!Help
StarInfo/Salt/!BlockSize/!Help
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1995-07.adf » !Regulars_Regulars |
Filename: | StarInfo/Salt/!BlockSize/!Help |
Read OK: | ✔ |
File size: | 077A bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
��������� BlockSize 1.10 ��������� Written by Darren Salt Supports interactive help This is a small utility which counts the disk space used by files. All you need to do is to drag one or more files or directories to the BlockSize icon. A window looking like that for a normal Filer count operation will be opened; indeed it works like a Filer action window. It has its own menu, with a 'Faster' option at the top (working much as its Filer equivalent), and a list of numbers below. These numbers represent various sector sizes or allocation units - initially the sector size is selected (and is shown in red to indicate that it is the sector size), so for a normal ADFS disk (800K or 1600K), the selected size will be 1K. Selecting a different size causes the display to be updated immediately (BlockSize keeps a count for each possible size). BlockSize can handle archives, with the following restrictions: if you drag the archive to BlockSize, or if it encounters an archive, it is treated as a file; the archive contents, if dragged to BlockSize, are treated as if not archived. IMPORTANT: Directories normally occupy 2K each, but in ArcFS archives are stored with length = -1, and in Spark archives with length &29*(number of entries)+2. On DOS-format disks, the size is a multiple of 512 bytes (16 bytes per entry). Therefore BlockSize quite reasonably assumes that all directories require 2K. Note that with some filing systems, the sector size may be different from the allocation unit. If, for example, you have a hard disk formatted with a sector size of 512 bytes, but has been initialised with an allocation unit of 1K, you will need to select '1K' from the count menu in order to get an accurate result. [The 4K allocation unit is WASTEFUL!] Statistics for !BlockSize: Alloc. unit 64 128 256 512 1K 2K 4K Disk space 26+3/8K 26�K 27K 28�K 32K 34K 52K
00000000 20 98 98 98 98 98 98 98 98 98 0a 20 42 6c 6f 63 | .......... Bloc| 00000010 6b 53 69 7a 65 20 31 2e 31 30 0a 20 98 98 98 98 |kSize 1.10. ....| 00000020 98 98 98 98 98 0a 0a 20 57 72 69 74 74 65 6e 20 |....... Written | 00000030 62 79 20 44 61 72 72 65 6e 20 53 61 6c 74 0a 0a |by Darren Salt..| 00000040 0a 20 53 75 70 70 6f 72 74 73 20 69 6e 74 65 72 |. Supports inter| 00000050 61 63 74 69 76 65 20 68 65 6c 70 0a 0a 0a 20 54 |active help... T| 00000060 68 69 73 20 69 73 20 61 20 73 6d 61 6c 6c 20 75 |his is a small u| 00000070 74 69 6c 69 74 79 20 77 68 69 63 68 20 63 6f 75 |tility which cou| 00000080 6e 74 73 20 74 68 65 20 64 69 73 6b 20 73 70 61 |nts the disk spa| 00000090 63 65 20 75 73 65 64 20 62 79 20 66 69 6c 65 73 |ce used by files| 000000a0 2e 20 41 6c 6c 20 79 6f 75 0a 6e 65 65 64 20 74 |. All you.need t| 000000b0 6f 20 64 6f 20 69 73 20 74 6f 20 64 72 61 67 20 |o do is to drag | 000000c0 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 66 69 6c 65 |one or more file| 000000d0 73 20 6f 72 20 64 69 72 65 63 74 6f 72 69 65 73 |s or directories| 000000e0 20 74 6f 20 74 68 65 20 42 6c 6f 63 6b 53 69 7a | to the BlockSiz| 000000f0 65 20 69 63 6f 6e 2e 0a 20 41 20 77 69 6e 64 6f |e icon.. A windo| 00000100 77 20 6c 6f 6f 6b 69 6e 67 20 6c 69 6b 65 20 74 |w looking like t| 00000110 68 61 74 20 66 6f 72 20 61 20 6e 6f 72 6d 61 6c |hat for a normal| 00000120 20 46 69 6c 65 72 20 63 6f 75 6e 74 20 6f 70 65 | Filer count ope| 00000130 72 61 74 69 6f 6e 20 77 69 6c 6c 20 62 65 0a 6f |ration will be.o| 00000140 70 65 6e 65 64 3b 20 69 6e 64 65 65 64 20 69 74 |pened; indeed it| 00000150 20 77 6f 72 6b 73 20 6c 69 6b 65 20 61 20 46 69 | works like a Fi| 00000160 6c 65 72 20 61 63 74 69 6f 6e 20 77 69 6e 64 6f |ler action windo| 00000170 77 2e 0a 20 49 74 20 68 61 73 20 69 74 73 20 6f |w.. It has its o| 00000180 77 6e 20 6d 65 6e 75 2c 20 77 69 74 68 20 61 20 |wn menu, with a | 00000190 27 46 61 73 74 65 72 27 20 6f 70 74 69 6f 6e 20 |'Faster' option | 000001a0 61 74 20 74 68 65 20 74 6f 70 20 28 77 6f 72 6b |at the top (work| 000001b0 69 6e 67 20 6d 75 63 68 20 61 73 20 69 74 73 0a |ing much as its.| 000001c0 46 69 6c 65 72 20 65 71 75 69 76 61 6c 65 6e 74 |Filer equivalent| 000001d0 29 2c 20 61 6e 64 20 61 20 6c 69 73 74 20 6f 66 |), and a list of| 000001e0 20 6e 75 6d 62 65 72 73 20 62 65 6c 6f 77 2e 20 | numbers below. | 000001f0 54 68 65 73 65 20 6e 75 6d 62 65 72 73 20 72 65 |These numbers re| 00000200 70 72 65 73 65 6e 74 0a 76 61 72 69 6f 75 73 20 |present.various | 00000210 73 65 63 74 6f 72 20 73 69 7a 65 73 20 6f 72 20 |sector sizes or | 00000220 61 6c 6c 6f 63 61 74 69 6f 6e 20 75 6e 69 74 73 |allocation units| 00000230 20 2d 20 69 6e 69 74 69 61 6c 6c 79 20 74 68 65 | - initially the| 00000240 20 73 65 63 74 6f 72 20 73 69 7a 65 20 69 73 0a | sector size is.| 00000250 73 65 6c 65 63 74 65 64 20 28 61 6e 64 20 69 73 |selected (and is| 00000260 20 73 68 6f 77 6e 20 69 6e 20 72 65 64 20 74 6f | shown in red to| 00000270 20 69 6e 64 69 63 61 74 65 20 74 68 61 74 20 69 | indicate that i| 00000280 74 20 69 73 20 74 68 65 20 73 65 63 74 6f 72 20 |t is the sector | 00000290 73 69 7a 65 29 2c 20 73 6f 20 66 6f 72 0a 61 20 |size), so for.a | 000002a0 6e 6f 72 6d 61 6c 20 41 44 46 53 20 64 69 73 6b |normal ADFS disk| 000002b0 20 28 38 30 30 4b 20 6f 72 20 31 36 30 30 4b 29 | (800K or 1600K)| 000002c0 2c 20 74 68 65 20 73 65 6c 65 63 74 65 64 20 73 |, the selected s| 000002d0 69 7a 65 20 77 69 6c 6c 20 62 65 20 31 4b 2e 0a |ize will be 1K..| 000002e0 20 53 65 6c 65 63 74 69 6e 67 20 61 20 64 69 66 | Selecting a dif| 000002f0 66 65 72 65 6e 74 20 73 69 7a 65 20 63 61 75 73 |ferent size caus| 00000300 65 73 20 74 68 65 20 64 69 73 70 6c 61 79 20 74 |es the display t| 00000310 6f 20 62 65 20 75 70 64 61 74 65 64 20 69 6d 6d |o be updated imm| 00000320 65 64 69 61 74 65 6c 79 0a 28 42 6c 6f 63 6b 53 |ediately.(BlockS| 00000330 69 7a 65 20 6b 65 65 70 73 20 61 20 63 6f 75 6e |ize keeps a coun| 00000340 74 20 66 6f 72 20 65 61 63 68 20 70 6f 73 73 69 |t for each possi| 00000350 62 6c 65 20 73 69 7a 65 29 2e 0a 0a 20 42 6c 6f |ble size)... Blo| 00000360 63 6b 53 69 7a 65 20 63 61 6e 20 68 61 6e 64 6c |ckSize can handl| 00000370 65 20 61 72 63 68 69 76 65 73 2c 20 77 69 74 68 |e archives, with| 00000380 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 72 | the following r| 00000390 65 73 74 72 69 63 74 69 6f 6e 73 3a 20 69 66 20 |estrictions: if | 000003a0 79 6f 75 20 64 72 61 67 0a 74 68 65 20 61 72 63 |you drag.the arc| 000003b0 68 69 76 65 20 74 6f 20 42 6c 6f 63 6b 53 69 7a |hive to BlockSiz| 000003c0 65 2c 20 6f 72 20 69 66 20 69 74 20 65 6e 63 6f |e, or if it enco| 000003d0 75 6e 74 65 72 73 20 61 6e 20 61 72 63 68 69 76 |unters an archiv| 000003e0 65 2c 20 69 74 20 69 73 20 74 72 65 61 74 65 64 |e, it is treated| 000003f0 20 61 73 20 61 0a 66 69 6c 65 3b 20 74 68 65 20 | as a.file; the | 00000400 61 72 63 68 69 76 65 20 63 6f 6e 74 65 6e 74 73 |archive contents| 00000410 2c 20 69 66 20 64 72 61 67 67 65 64 20 74 6f 20 |, if dragged to | 00000420 42 6c 6f 63 6b 53 69 7a 65 2c 20 61 72 65 20 74 |BlockSize, are t| 00000430 72 65 61 74 65 64 20 61 73 20 69 66 20 6e 6f 74 |reated as if not| 00000440 0a 61 72 63 68 69 76 65 64 2e 0a 20 49 4d 50 4f |.archived.. IMPO| 00000450 52 54 41 4e 54 3a 20 44 69 72 65 63 74 6f 72 69 |RTANT: Directori| 00000460 65 73 20 6e 6f 72 6d 61 6c 6c 79 20 6f 63 63 75 |es normally occu| 00000470 70 79 20 32 4b 20 65 61 63 68 2c 20 62 75 74 20 |py 2K each, but | 00000480 69 6e 20 41 72 63 46 53 20 61 72 63 68 69 76 65 |in ArcFS archive| 00000490 73 20 61 72 65 0a 73 74 6f 72 65 64 20 77 69 74 |s are.stored wit| 000004a0 68 20 6c 65 6e 67 74 68 20 3d 20 2d 31 2c 20 61 |h length = -1, a| 000004b0 6e 64 20 69 6e 20 53 70 61 72 6b 20 61 72 63 68 |nd in Spark arch| 000004c0 69 76 65 73 20 77 69 74 68 20 6c 65 6e 67 74 68 |ives with length| 000004d0 20 26 32 39 2a 28 6e 75 6d 62 65 72 20 6f 66 0a | &29*(number of.| 000004e0 65 6e 74 72 69 65 73 29 2b 32 2e 20 4f 6e 20 44 |entries)+2. On D| 000004f0 4f 53 2d 66 6f 72 6d 61 74 20 64 69 73 6b 73 2c |OS-format disks,| 00000500 20 74 68 65 20 73 69 7a 65 20 69 73 20 61 20 6d | the size is a m| 00000510 75 6c 74 69 70 6c 65 20 6f 66 20 35 31 32 20 62 |ultiple of 512 b| 00000520 79 74 65 73 20 28 31 36 0a 62 79 74 65 73 20 70 |ytes (16.bytes p| 00000530 65 72 20 65 6e 74 72 79 29 2e 20 54 68 65 72 65 |er entry). There| 00000540 66 6f 72 65 20 42 6c 6f 63 6b 53 69 7a 65 20 71 |fore BlockSize q| 00000550 75 69 74 65 20 72 65 61 73 6f 6e 61 62 6c 79 20 |uite reasonably | 00000560 61 73 73 75 6d 65 73 20 74 68 61 74 20 61 6c 6c |assumes that all| 00000570 0a 64 69 72 65 63 74 6f 72 69 65 73 20 72 65 71 |.directories req| 00000580 75 69 72 65 20 32 4b 2e 0a 0a 20 4e 6f 74 65 20 |uire 2K... Note | 00000590 74 68 61 74 20 77 69 74 68 20 73 6f 6d 65 20 66 |that with some f| 000005a0 69 6c 69 6e 67 20 73 79 73 74 65 6d 73 2c 20 74 |iling systems, t| 000005b0 68 65 20 73 65 63 74 6f 72 20 73 69 7a 65 20 6d |he sector size m| 000005c0 61 79 20 62 65 20 64 69 66 66 65 72 65 6e 74 20 |ay be different | 000005d0 66 72 6f 6d 0a 74 68 65 20 61 6c 6c 6f 63 61 74 |from.the allocat| 000005e0 69 6f 6e 20 75 6e 69 74 2e 20 49 66 2c 20 66 6f |ion unit. If, fo| 000005f0 72 20 65 78 61 6d 70 6c 65 2c 20 79 6f 75 20 68 |r example, you h| 00000600 61 76 65 20 61 20 68 61 72 64 20 64 69 73 6b 20 |ave a hard disk | 00000610 66 6f 72 6d 61 74 74 65 64 20 77 69 74 68 20 61 |formatted with a| 00000620 0a 73 65 63 74 6f 72 20 73 69 7a 65 20 6f 66 20 |.sector size of | 00000630 35 31 32 20 62 79 74 65 73 2c 20 62 75 74 20 68 |512 bytes, but h| 00000640 61 73 20 62 65 65 6e 20 69 6e 69 74 69 61 6c 69 |as been initiali| 00000650 73 65 64 20 77 69 74 68 20 61 6e 20 61 6c 6c 6f |sed with an allo| 00000660 63 61 74 69 6f 6e 20 75 6e 69 74 20 6f 66 0a 31 |cation unit of.1| 00000670 4b 2c 20 79 6f 75 20 77 69 6c 6c 20 6e 65 65 64 |K, you will need| 00000680 20 74 6f 20 73 65 6c 65 63 74 20 27 31 4b 27 20 | to select '1K' | 00000690 66 72 6f 6d 20 74 68 65 20 63 6f 75 6e 74 20 6d |from the count m| 000006a0 65 6e 75 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 |enu in order to | 000006b0 67 65 74 20 61 6e 0a 61 63 63 75 72 61 74 65 20 |get an.accurate | 000006c0 72 65 73 75 6c 74 2e 20 5b 54 68 65 20 34 4b 20 |result. [The 4K | 000006d0 61 6c 6c 6f 63 61 74 69 6f 6e 20 75 6e 69 74 20 |allocation unit | 000006e0 69 73 20 57 41 53 54 45 46 55 4c 21 5d 0a 0a 20 |is WASTEFUL!].. | 000006f0 53 74 61 74 69 73 74 69 63 73 20 66 6f 72 20 21 |Statistics for !| 00000700 42 6c 6f 63 6b 53 69 7a 65 3a 0a 20 41 6c 6c 6f |BlockSize:. Allo| 00000710 63 2e 20 75 6e 69 74 20 20 20 36 34 20 20 20 20 |c. unit 64 | 00000720 20 20 20 31 32 38 20 20 20 32 35 36 20 20 35 31 | 128 256 51| 00000730 32 20 20 20 20 20 31 4b 20 20 20 32 4b 20 20 20 |2 1K 2K | 00000740 34 4b 0a 20 44 69 73 6b 20 73 70 61 63 65 20 20 |4K. Disk space | 00000750 20 20 32 36 2b 33 2f 38 4b 20 20 20 32 36 bd 4b | 26+3/8K 26.K| 00000760 20 20 32 37 4b 20 20 32 38 bd 4b 20 20 33 32 4b | 27K 28.K 32K| 00000770 20 20 33 34 4b 20 20 35 32 4b | 34K 52K| 0000077a