4 #include <exec/types.h>
5 #include <libraries/iffparse.h>
6 #include "blockstructure.h"
10 ULONG be_bits
; /* Set bits are used blocks, bit 31 is
11 the first block in the AdminSpace. */
15 #define ADMINSPACECONTAINER_ID AROS_LONG2BE(MAKE_ID('A','D','M','C'))
17 struct fsAdminSpaceContainer
{
18 struct fsBlockHeader bheader
;
23 UBYTE bits
; /* Bits 0-2: %000 = 2^0 = bitmap size 1 byte.
24 %001 = 2^1 = bitmap size 2 bytes.
25 %010 = 2^2 = bitmap size 4 bytes.
26 %011 = 2^3 = bitmap size 8 bytes.
27 %100 = 2^4 = bitmap size 16 bytes.
28 %101 = 2^5 = bitmap size 32 bytes.
29 %110 = 2^6 = bitmap size 64 bytes.
30 %111 = 2^7 = bitmap size 128 bytes. */
34 struct fsAdminSpace adminspace
[0];
41 INT((blocksize-sizeof(struct fsAdminSpaceContainer)) / (2^bits+4)) * 2^bits
43 Effectiveness 512 1024 2048 4096 8192
44 -----------------------------------------------
49 64 476 896 1856 3776 7680
50 128 396 896 1920 3840 7808
51 -----------------------------------------------
55 30.000 files -> 3000-6000 OBJC -> 6000-12000 blocks.
63 #endif // _ADMINSPACES_H