#include <storage.h>
Public Member Functions | |
| void | print () |
Public Attributes | |
| unsigned | signature |
| unsigned | checkpoint_counter |
| unsigned | block_directory |
| unsigned | segment_directory |
| Size | blocks_per_segment |
| unsigned | curr_empty_segment |
Static Public Attributes | |
| const unsigned | CORRECT_SIGNATURE = 0xbb66 |
The Torsion storage system has two superblocks at fixed locations on the disk. Every time a checkpoint is completed, various storage meta-data are written to one of the superblocks so that the storage system's state can be easily recovered on boot. There are two superblocks so that at least one superblock is always in a consistent state.
|
|
Print basic information about this Superblock.
|
|
|
first block of block directory
|
|
|
number of blocks per disk segment
|
|
|
ID number of recent checkpoint.
|
|
|
|
|
|
first block of current empty segment
|
|
|
first block of segment directory
|
|
|
magic num for a Torsion superblock
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman