StuBS
|
Public Member Functions | |
Bufferdisk () | |
~Bufferdisk () | |
void | load (char *buffer, unsigned buffersize) |
void | unload () |
Block | fix (uint64_t block_number) |
void | unfix (Block *block) |
int | sync () |
int | sync (Block *block) |
Public Member Functions inherited from BlockDevice | |
BlockDevice () | |
bool | set_blocksize (unsigned int blocksize) |
template<typename T > | |
T | divide_by_blocksize (T val) const |
template<typename T > | |
T | modulo_blocksize (T val) const |
Private Attributes | |
char * | buf |
unsigned | size |
Additional Inherited Members | |
Public Attributes inherited from BlockDevice | |
unsigned int | blocksize |
unsigned int | blocksize_bits |
|
inline |
|
inline |
|
inline |
|
inline |
Implements BlockDevice.
|
inlinevirtual |
Implements BlockDevice.
|
inlinevirtual |
Implements BlockDevice.
|
inlinevirtual |
Implements BlockDevice.
|
private |
|
private |