Class for allocating space on a disk
Err | Allocator::AllocSpace (TID tID, Size fileSize) Allocates space |
Err | Allocator::AllocTableFind (const TID tID, const Int shouldClose, Size *fileSize, Char **fileName) Searches allocTable |
Err | Allocator::AllocTableInsert (const TID tID, const Size fileSize, const Char *fileName) Insert into allocTable |
Err | Allocator::AllocValid (TID tID, Size fileSize) Is allocation valid? |
Allocator::Allocator (Eso *anEso, LogFile *allocLogFile) Constructor | |
Err | Allocator::CreateAllocFile (const Size fileSize, Char **anAllocFileName) Creates allocation file |
TableFieldQueue* | Allocator::CreateDefinition () Creates definition of allocTable |
Err | Allocator::FreeSpace (TID tID) Frees space |
Err | Allocator::Rollback (TID tID) Rolls back a transaction |
void | Allocator::Test () Allocator test |
Allocator::~Allocator () Destructor |
methods
|
attributes
| |||||||||
methods
|
methods
attributes
Class for allocating space on a disk. This class is responsible for allocating space on the disk, when request to store a file arrives to Eso. It stores all information about allocations in a table with this structure:
(TID: ID, FileSize: Size, FileName: String).
shouldClose - tells if the table should be closed after a successfull search
fileSize - size of found file
fileName - name of found file
fileSize - size of allocated file
fileName - name of allocated file
fileSize - checked size of file
allocLogFile - pointer to log file where Allocator should log its work
anAllocFileName - out parameter that tells the name of newly created allocation file
alphabetic index hierarchy of classes
generated by doc++