VLSI Solution Oy / MegaLib Documentation

FsMapper Struct Reference

#include <mapper.h>

Collaboration diagram for FsMapper:

Collaboration graph
[legend]

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)
FsPhysicalphysical

Detailed Description

File system Mapper layer structure. Each Mapper should begin its own internal structure with this common structure.

Definition at line 38 of file mapper.h.


Field Documentation

u_int32 FsMapper::blocks
 

How many usable blocks in the whole system

Definition at line 45 of file mapper.h.

u_int16 FsMapper::blockSize
 

How many 16-bit words in a block

Definition at line 43 of file mapper.h.

u_int16 FsMapper::cacheBlocks
 

How many blocks can be cached by the mapper

Definition at line 47 of file mapper.h.

struct FsMapper*(* FsMapper::Create)(struct FsPhysical *physical, u_int16 cacheSize)
 

Create a mapper.

s_int16(* FsMapper::Delete)(struct FsMapper *map)
 

Delete a mapper

s_int16(* FsMapper::Flush)(struct FsMapper *map, u_int16 hard)
 

Flush all data. if hard is non-zero, all potential journals are also flushed.

s_int16(* FsMapper::Free)(struct FsMapper *map, u_int32 firstBlock, u_int32 blocks)
 

Free blocks (implementation must be able to go fastly through large free areas.

struct FsPhysical* FsMapper::physical
 

Pointer to this Mapper's Physical layer.

Definition at line 65 of file mapper.h.

s_int16(* FsMapper::Read)(struct FsMapper *map, u_int32 firstBlock, u_int16 blocks, u_int16 *data)
 

Read blocks

u_int16 FsMapper::version
 

Version number. 8 MSBs contain version number, 8 LSBs size of the structure in words.

Definition at line 41 of file mapper.h.

s_int16(* FsMapper::Write)(struct FsMapper *map, u_int32 firstBlock, u_int16 blocks, u_int16 *data)
 

Write blocks


The documentation for this struct was generated from the following file:
All software copyright 2005-2006 VLSI Solution OY. Redistribution of this software is strictly forbidden.