class FilesystemInstance
Defined at line 142 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 144 of file ../../src/storage/fs_test/fs_test.h
void FilesystemInstance (const FilesystemInstance & )
Defined at line 145 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 146 of file ../../src/storage/fs_test/fs_test.h
void ~FilesystemInstance ()
Defined at line 147 of file ../../src/storage/fs_test/fs_test.h
zx::result<> Unmount (const std::string & mount_path)
Default implementation
Defined at line 501 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 157 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 161 of file ../../src/storage/fs_test/fs_test.h
ramdevice_client::Ramdisk * GetRamDisk ()
Defined at line 168 of file ../../src/storage/fs_test/fs_test.h
ramdevice_client::RamNand * GetRamNand ()
Defined at line 172 of file ../../src/storage/fs_test/fs_test.h
fidl::UnownedClientEnd<fuchsia_io::Directory> ServiceDirectory ()
Defined at line 177 of file ../../src/storage/fs_test/fs_test.h
void Reset ()
Defined at line 180 of file ../../src/storage/fs_test/fs_test.h
fs_management::SingleVolumeFilesystemInterface * fs ()
std::string GetMoniker ()