revert between 56095 -> 55830 in arch
[AROS.git] / rom / filesys / SFS / FS / bitmap.h
blobd56675e912f5a0928941ad3ae4ff0854bffe4966
1 #ifndef _BITMAP_H
2 #define _BITMAP_H
4 #include <exec/types.h>
5 #include <libraries/iffparse.h>
6 #include "blockstructure.h"
8 #define SPACELIST_MAX (1000)
10 /* Used by smartfindandmarkspace() */
12 struct Space {
13 BLCK block;
14 ULONG blocks;
19 /* The fsBitmap structure is used for Bitmap blocks. Every partition has
20 a bitmap, and the number of blocks the partition consists of determines
21 its size. The position of the first Bitmap block is stored in the root
22 block. If there are any more bitmap blocks then these are located in
23 order directly after the first bitmap block. For every block on disk
24 there is a single bit in a bitmap block which tells you whether it is
25 in use or not. */
27 #define BITMAP_ID AROS_LONG2BE(MAKE_ID('B','T','M','P'))
29 struct fsBitmap {
30 struct fsBlockHeader bheader;
32 ULONG bitmap[0];
34 /* Bits are 1 if the block is free, and 0 if full.
35 Bitmap must consist of an integral number of longwords. */
38 #endif // _BITMAP_H