class FilesystemInstance

Defined at line 147 of file ../../src/storage/fs_test/fs_test.h

A file system instance is a specific instance created for test purposes.

These abstract base classes are derived in the shared libraries that filesystem test suites

implement. The definitions here must have public LTO visibility to be compatible with the

definitions in the shared libraries. (See

https://clang.llvm.org/docs/LTOVisibility.html).

Public Methods

void FilesystemInstance ()

Defined at line 149 of file ../../src/storage/fs_test/fs_test.h

void FilesystemInstance (const FilesystemInstance & )

Defined at line 150 of file ../../src/storage/fs_test/fs_test.h

zx::result<> Format (const TestFilesystemOptions & )
zx::result<> Mount (const std::string & mount_path, const fs_management::MountOptions & options)
FilesystemInstance & operator= (const FilesystemInstance & )

Defined at line 151 of file ../../src/storage/fs_test/fs_test.h

void ~FilesystemInstance ()

Defined at line 152 of file ../../src/storage/fs_test/fs_test.h

zx::result<> Unmount (const std::string & mount_path)

Default implementation

Defined at line 509 of file ../../src/storage/fs_test/fs_test.cc

zx::result<> Fsck ()
RamDevice * GetRamDevice ()

For filesystems that run on top of a block device, this returns an object that holds the ram

disk or nand device plus any additional drivers that might be required (e.g. FVM).

Defined at line 162 of file ../../src/storage/fs_test/fs_test.h

zx::result<std::string> DevicePath ()

Returns path of the device on which the filesystem is created. For filesystem that are not

block device based, like memfs, the function returns an error.

Defined at line 166 of file ../../src/storage/fs_test/fs_test.h

ramdevice_client::Ramdisk * GetRamDisk ()

Defined at line 173 of file ../../src/storage/fs_test/fs_test.h

ramdevice_client::RamNand * GetRamNand ()

Defined at line 177 of file ../../src/storage/fs_test/fs_test.h

fidl::UnownedClientEnd<fuchsia_io::Directory> ServiceDirectory ()

Defined at line 182 of file ../../src/storage/fs_test/fs_test.h

void Reset ()

Defined at line 185 of file ../../src/storage/fs_test/fs_test.h

fs_management::SingleVolumeFilesystemInterface * fs ()
std::string GetMoniker ()