class FvmInstance
Defined at line 66 of file ../../src/storage/fvm/fvm_test_instance.h
Public Methods
void CreateRamdisk (uint64_t block_size, uint64_t block_count)
Creates a ramdisk, destroying and recreating it if it already exists.
Defined at line 58 of file ../../src/storage/fvm/fvm_test_instance.cc
void CreateFvm (uint64_tblock_size,uint64_tblock_count,uint64_tslice_size)
Creates a ramdisk and formats it with fvm.
Defined at line 77 of file ../../src/storage/fvm/fvm_test_instance.cc
void StartFvm ()
Defined at line 84 of file ../../src/storage/fvm/fvm_test_instance.cc
void RestartFvm ()
Rebinds or restarts the FVM instance.
Defined at line 95 of file ../../src/storage/fvm/fvm_test_instance.cc
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.
Defined at line 104 of file ../../src/storage/fvm/fvm_test_instance.cc
fuchsia_storage_block::wire::VolumeManagerInfo GetFvmInfo ()
Get general info about fvm.
Defined at line 119 of file ../../src/storage/fvm/fvm_test_instance.cc
zx::result<std::unique_ptr<BlockConnector>> AllocatePartition (const AllocatePartitionRequest & request)
Allocates a new partition.
Defined at line 129 of file ../../src/storage/fvm/fvm_test_instance.cc
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.
Defined at line 147 of file ../../src/storage/fvm/fvm_test_instance.cc
void DestroyPartition (std::string_view label)
Destroys the named partition, removing it from this fvm instance.
Defined at line 162 of file ../../src/storage/fvm/fvm_test_instance.cc
fidl::ClientEnd<fuchsia_storage_block::Block> GetRamdiskPartition ()
Returns the block interface of the underlying ramdisk.
Defined at line 166 of file ../../src/storage/fvm/fvm_test_instance.cc