#include <mapper.h>
Collaboration diagram for FsMapper:
Data Fields | |
u_int16 | version |
u_int16 | blockSize |
u_int32 | blocks |
u_int16 | cacheBlocks |
FsMapper *(* | Create )(struct FsPhysical *physical, u_int16 cacheSize) |
s_int16(* | Delete )(struct FsMapper *map) |
s_int16(* | Read )(struct FsMapper *map, u_int32 firstBlock, u_int16 blocks, u_int16 *data) |
s_int16(* | Write )(struct FsMapper *map, u_int32 firstBlock, u_int16 blocks, u_int16 *data) |
s_int16(* | Free )(struct FsMapper *map, u_int32 firstBlock, u_int32 blocks) |
s_int16(* | Flush )(struct FsMapper *map, u_int16 hard) |
FsPhysical * | physical |
Definition at line 38 of file mapper.h.
|
How many usable blocks in the whole system |
|
How many 16-bit words in a block |
|
How many blocks can be cached by the mapper |
|
Create a mapper. |
|
Delete a mapper |
|
Flush all data. if hard is non-zero, all potential journals are also flushed. |
|
Free blocks (implementation must be able to go fastly through large free areas. |
|
Pointer to this Mapper's Physical layer. |
|
Read blocks |
|
Version number. 8 MSBs contain version number, 8 LSBs size of the structure in words. |
|
Write blocks |