class FvmAdapter

Defined at line 205 of file ../../src/storage/fvm/test_support.h

Wrapper over FVM and common operations, to reduce the boilerplate and complexity of tests.

Public Methods

void FvmAdapter (const fbl::unique_fd & devfs_root, const std::string & path, DeviceRef * block_device)

Defined at line 219 of file ../../src/storage/fvm/test_support.h

void FvmAdapter (const FvmAdapter & )

Defined at line 221 of file ../../src/storage/fvm/test_support.h

void FvmAdapter (FvmAdapter && )

Defined at line 222 of file ../../src/storage/fvm/test_support.h

FvmAdapter & operator= (const FvmAdapter & )

Defined at line 223 of file ../../src/storage/fvm/test_support.h

FvmAdapter & operator= (FvmAdapter && )

Defined at line 224 of file ../../src/storage/fvm/test_support.h

const DeviceRef * device ()

Returns a reference to the underlying device.

Defined at line 237 of file ../../src/storage/fvm/test_support.h

DeviceRef * device ()

Defined at line 238 of file ../../src/storage/fvm/test_support.h

std::unique_ptr<FvmAdapter> Create (const fbl::unique_fd & devfs_root, uint64_t block_size, uint64_t block_count, uint64_t slice_size, DeviceRef * device)

Defined at line 271 of file ../../src/storage/fvm/test_support.cc

std::unique_ptr<FvmAdapter> CreateGrowable (const fbl::unique_fd & devfs_root, uint64_t block_size, uint64_t initial_block_count, uint64_t maximum_block_count, uint64_t slice_size, DeviceRef * device)

Defined at line 277 of file ../../src/storage/fvm/test_support.cc

std::unique_ptr<FvmAdapter> Bind (const fbl::unique_fd & devfs_root, DeviceRef * device)

Defined at line 305 of file ../../src/storage/fvm/test_support.cc

zx_status_t AddPartition (const fbl::unique_fd & devfs_root, const std::string & name, const Guid & guid, const Guid & type, uint64_t slice_count, std::unique_ptr<VPartitionAdapter> * out_vpartition)

Defined at line 337 of file ../../src/storage/fvm/test_support.cc

zx_status_t Rebind ()

Rebinds the fvm driver.

Defined at line 374 of file ../../src/storage/fvm/test_support.cc

zx_status_t Query (VolumeManagerInfo * out_info)

Queries the FVM device and sets |out_info|.

Defined at line 408 of file ../../src/storage/fvm/test_support.cc