class DeviceRef
Defined at line 79 of file ../../src/storage/fvm/test_support.h
Represents a reference to a device, providing communication paths and topological path to it.
The resources used for communicating with the respective device are released upon going out of
scope.
Protected Members
const fbl::unique_fd & devfs_root_
basic_string path_
Public Methods
void DeviceRef (const DeviceRef & )
Defined at line 87 of file ../../src/storage/fvm/test_support.h
void DeviceRef (DeviceRef && )
Defined at line 88 of file ../../src/storage/fvm/test_support.h
DeviceRef & operator= (const DeviceRef & )
Defined at line 89 of file ../../src/storage/fvm/test_support.h
DeviceRef & operator= (DeviceRef && )
Defined at line 90 of file ../../src/storage/fvm/test_support.h
void ~DeviceRef ()
Defined at line 91 of file ../../src/storage/fvm/test_support.h
const char * path ()
Topological path to the device.
Defined at line 94 of file ../../src/storage/fvm/test_support.h
const fbl::unique_fd & devfs_root_fd ()
Defined at line 96 of file ../../src/storage/fvm/test_support.h
std::unique_ptr<DeviceRef> Create (const fbl::unique_fd & devfs_root, const std::string & path)
Creates a connection to a block device at a given |path|.
Returns nullptr on failure.
Defined at line 103 of file ../../src/storage/fvm/test_support.cc
void DeviceRef (const fbl::unique_fd & devfs_root, const std::string & path)
namespace
Defined at line 98 of file ../../src/storage/fvm/test_support.cc