class PendingWork

Defined at line 25 of file ../../src/storage/minfs/pending_work.h

Represents an interface which can be used to store pending work to be written to disk at a later

time.

Public Methods

void EnqueueMetadata (storage::Operation operation, storage::BlockBuffer * buffer)

Enqueues a metadata-write operation.

void EnqueueData (storage::Operation operation, storage::BlockBuffer * buffer)

Enqueues a data-write operation.

Write to data blocks must be done in a separate transaction from metadata updates to ensure

that all user data goes out to disk before associated metadata.

size_t AllocateBlock ()

Allocates a block in the data section and returns the block allocated.

void DeallocateBlock (size_t block)

Deallocates a block in the data section and returns the block allocated.

void ~PendingWork ()

Defined at line 27 of file ../../src/storage/minfs/pending_work.h