class AllocatorMetadata

Defined at line 82 of file ../../src/storage/minfs/allocator/metadata.h

Metadata information used to initialize a generic allocator.

This structure contains references to the global superblock,

for fields that are intended to be updated.

The allocator is the sole mutator of these fields while the

filesystem is mounted.

Public Methods

void AllocatorMetadata (blk_t data_start_block, blk_t metadata_start_block, bool using_fvm, AllocatorFvmMetadata fvm, SuperblockManager * superblock_manager, SuperblockAllocatorAccess interface)

Defined at line 27 of file ../../src/storage/minfs/allocator/metadata.cc

void AllocatorMetadata ()

Defined at line 84 of file ../../src/storage/minfs/allocator/metadata.h

void AllocatorMetadata (AllocatorMetadata && )

Movable, not copyable.

Defined at line 90 of file ../../src/storage/minfs/allocator/metadata.h

AllocatorMetadata & operator= (AllocatorMetadata && )

Defined at line 91 of file ../../src/storage/minfs/allocator/metadata.h

blk_t DataStartBlock ()

Defined at line 93 of file ../../src/storage/minfs/allocator/metadata.h

blk_t MetadataStartBlock ()

Defined at line 95 of file ../../src/storage/minfs/allocator/metadata.h

bool UsingFvm ()

Defined at line 97 of file ../../src/storage/minfs/allocator/metadata.h

AllocatorFvmMetadata & Fvm ()

Defined at line 99 of file ../../src/storage/minfs/allocator/metadata.h

uint32_t PoolUsed ()

Defined at line 104 of file ../../src/storage/minfs/allocator/metadata.h

uint32_t PoolAvailable ()

Return the number of elements which are still available for allocation/reservation.

Defined at line 107 of file ../../src/storage/minfs/allocator/metadata.h

void PoolAllocate (uint32_t units)

Defined at line 109 of file ../../src/storage/minfs/allocator/metadata.h

void PoolRelease (uint32_t units)

Defined at line 115 of file ../../src/storage/minfs/allocator/metadata.h

uint32_t PoolTotal ()

Defined at line 120 of file ../../src/storage/minfs/allocator/metadata.h

void SetPoolTotal (uint32_t total)

Defined at line 122 of file ../../src/storage/minfs/allocator/metadata.h