class FtlHandle
Defined at line 43 of file ../../src/storage/volume_image/ftl/ftl_io.h
Provides ownership of the FTL volume and the instance of the FTL.
Any generated |Reader| or |Writer| will prolong the lifetime of the underlying handle.
That is, it is safe to continue to use reader and writers generated from a handle instance,
even if the last reference to the handle goes away, since the reader and writer, hold references
to the internal objects as well.
Public Methods
void FtlHandle ()
Defined at line 45 of file ../../src/storage/volume_image/ftl/ftl_io.h
ftl::Volume & volume ()
Defined at line 51 of file ../../src/storage/volume_image/ftl/ftl_io.h
FtlInstance & instance ()
Defined at line 53 of file ../../src/storage/volume_image/ftl/ftl_io.h
fpromise::result<void, std::string> Init (std::unique_ptr<ftl::NdmDriver> driver)
Defined at line 116 of file ../../src/storage/volume_image/ftl/ftl_io.cc
std::unique_ptr<Reader> MakeReader ()
Returns a reader instance that reads from the FTL volume.
Defined at line 126 of file ../../src/storage/volume_image/ftl/ftl_io.cc
std::unique_ptr<Writer> MakeWriter ()
Returns a writer instance that writes into the FTL volume.
Defined at line 131 of file ../../src/storage/volume_image/ftl/ftl_io.cc