StuBS
|
#include <fs/block.h>
Public Member Functions | |
Block (BlockDevice *bdev, uint64_t block_number) | |
Block () | |
void | mark_dirty () |
bool | is_dirty () const |
void | clear_dirty () |
unsigned int | get_size () const |
void | sync () |
void | unfix () |
void | forget () |
Public Attributes | |
uint64_t | block_number |
void * | data |
BlockDevice * | bdev |
int | flags |
Static Public Attributes | |
static const int | DIRTY_FLAG = 0x1 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
uint64_t Block::block_number |
void* Block::data |
BlockDevice* Block::bdev |
int Block::flags |