#include <segment.h>
Collaboration diagram for Segment:
Public Attributes | |
Segment_header * | header |
void * | buffer |
unsigned int | first_block |
unsigned int | curr_page_block |
unsigned int | pages_count |
unsigned int | index |
The disk is divided up into a series of fixed-size segments, and each segment contains several data pages. A Segment object in memory provides information about a single storage segment on disk. It contains a copy of the segment's header and a buffer containing its page data.
|
contains the segment's page data.
|
|
disk block of current page.
|
|
block number of segment on disk.
|
|
copy of segment's metadata.
|
|
0th segment is 0, 1st segment is 1.
|
|
number of pages stored in segment.
|
Torsion Operating System, Copyright (C) 2000-2002 Dan Helfman