class HostAllocator

Defined at line 25 of file ../../src/storage/blobfs/allocator/host_allocator.h

A simple allocator for manipulating node and block allocations in blobfs images on a host device.

Public Methods

zx::result<std::unique_ptr<HostAllocator>> Create (RawBitmap block_bitmap, std::span<Inode> node_map)

Does not take ownership of |block_bitmap|.

Defined at line 29 of file ../../src/storage/blobfs/allocator/host_allocator.cc

zx::result<InodePtr> GetNode (uint32_t node_index)

blobfs::NodeFinder interface.

Defined at line 52 of file ../../src/storage/blobfs/allocator/host_allocator.cc

void * GetBlockBitmapData ()

Defined at line 59 of file ../../src/storage/blobfs/allocator/host_allocator.cc

Protected Methods

zx::result<> AddBlocks (uint64_t block_count)

blobfs::BaseAllocator interface.

Defined at line 38 of file ../../src/storage/blobfs/allocator/host_allocator.h

zx::result<> AddNodes ()

Defined at line 39 of file ../../src/storage/blobfs/allocator/host_allocator.h