class FvmInstance

Defined at line 64 of file ../../src/storage/fvm/fvm_test_instance.h

Public Methods

void SetUp ()
void TearDown ()
void CreateRamdisk (uint64_t block_size, uint64_t block_count)

Creates a ramdisk, destroying and recreating it if it already exists.

void CreateFvm (uint64_t block_size, uint64_t block_count, uint64_t slice_size)

Creates a ramdisk and formats it with fvm.

void StartFvm ()
void RestartFvm ()

Rebinds or restarts the FVM instance.

void RestartFvmWithNewDiskSize (uint64_t block_size, uint64_t block_count)

Create a new ramdisk with a new total size. The block size must be the same as the existing

block size. This will start the disk and the fvm after recreating the disk.

fuchsia_storage_block::wire::VolumeManagerInfo GetFvmInfo ()

Get general info about fvm.

zx::result<std::unique_ptr<BlockConnector>> AllocatePartition (const AllocatePartitionRequest & request)

Allocates a new partition.

zx::result<std::unique_ptr<BlockConnector>> OpenPartition (std::string_view label)

Opens an existing partition. This will wait for it to appear if it doesn't already exist.

void DestroyPartition (std::string_view label)

Destroys the named partition, removing it from this fvm instance.

fidl::ClientEnd<fuchsia_storage_block::Block> GetRamdiskPartition ()

Returns the block interface of the underlying ramdisk.

void ~FvmInstance ()

Defined at line 69 of file ../../src/storage/fvm/fvm_test_instance.h