class AllocatorStorage
Defined at line 34 of file ../../src/storage/minfs/allocator/storage.h
Interface for an Allocator's underlying storage.
Public Methods
void AllocatorStorage ()
Defined at line 36 of file ../../src/storage/minfs/allocator/storage.h
void AllocatorStorage (const AllocatorStorage & )
Defined at line 37 of file ../../src/storage/minfs/allocator/storage.h
zx::result<> AttachVmo (const zx::vmo & vmo, storage::OwnedVmoid * vmoid)
void Load (fs::BufferedOperationsBuilder * builder, storage::BlockBuffer * data)
Loads data from disk into |data| using |builder|.
The implementation of this class is expected to use the builder to complete
the request, which means that it should provide the type of data expected
by the builder. Specifically, all that should be needed from |data| on host
code is access to a raw pointer, and all that should be needed on Fuchsia
code is the vmoid that identifies the buffer.
For more details consult the BufferedOperationsBuilder documentation.
zx::result<> Extend (PendingWork * transaction, WriteData data, GrowMapCallback grow_map)
Extend the on-disk extent containing map_.
zx::result<> Extend (PendingWork * transaction, WriteData data, GrowMapCallback grow_map)
Extend the on-disk extent containing map_.
uint32_t PoolAvailable ()
Returns the number of unallocated elements.
uint32_t PoolTotal ()
Returns the total number of elements.
uint32_t PoolBlocks ()
The number of blocks necessary to store |PoolTotal()| elements.
Defined at line 19 of file ../../src/storage/minfs/allocator/storage_common.cc
void PersistRange (PendingWork * transaction, WriteData data, size_t index, size_t count)
Persists the map at range |index| - |index + count|.
void PersistRange (PendingWork * transaction, WriteData data, size_t index, size_t count)
Persists the map at range |index| - |index + count|.
void PersistAllocate (PendingWork * transaction, size_t count)
Marks |count| elements allocated and persists the latest data.
void PersistRelease (PendingWork * transaction, size_t count)
Marks |count| elements released and persists the latest data.
AllocatorStorage & operator= (const AllocatorStorage & )
Defined at line 38 of file ../../src/storage/minfs/allocator/storage.h
void ~AllocatorStorage ()
Defined at line 39 of file ../../src/storage/minfs/allocator/storage.h