class VolumeImpl

Defined at line 118 of file ../../src/storage/lib/ftl/ftln/volume.h

Implementation of the Volume interface.

Public Methods

const char * Init (std::unique_ptr<NdmDriver> driver)

Volume interface.

Defined at line 24 of file ../../src/storage/lib/ftl/ftln/volume.cc

const char * ReAttach ()

Defined at line 35 of file ../../src/storage/lib/ftl/ftln/volume.cc

zx_status_t Read (uint32_t first_page, int num_pages, void * buffer)

Defined at line 44 of file ../../src/storage/lib/ftl/ftln/volume.cc

zx_status_t Write (uint32_t first_page, int num_pages, const void * buffer)

Defined at line 51 of file ../../src/storage/lib/ftl/ftln/volume.cc

zx_status_t Format ()

Defined at line 58 of file ../../src/storage/lib/ftl/ftln/volume.cc

zx_status_t FormatAndLevel ()

Defined at line 65 of file ../../src/storage/lib/ftl/ftln/volume.cc

zx_status_t Mount ()

Defined at line 72 of file ../../src/storage/lib/ftl/ftln/volume.cc

zx_status_t Unmount ()

Defined at line 79 of file ../../src/storage/lib/ftl/ftln/volume.cc

zx_status_t Flush ()

Defined at line 86 of file ../../src/storage/lib/ftl/ftln/volume.cc

zx_status_t Trim (uint32_t first_page, uint32_t num_pages)

Defined at line 93 of file ../../src/storage/lib/ftl/ftln/volume.cc

zx_status_t GarbageCollect ()

Defined at line 100 of file ../../src/storage/lib/ftl/ftln/volume.cc

zx_status_t GetStats (Stats * stats)

Defined at line 112 of file ../../src/storage/lib/ftl/ftln/volume.cc

void VolumeImpl (FtlInstance * owner)

Defined at line 120 of file ../../src/storage/lib/ftl/ftln/volume.h

zx_status_t GetCounters (Counters * counters)

Defined at line 136 of file ../../src/storage/lib/ftl/ftln/volume.cc

zx_status_t GetNewWearLeveling (bool * state)

Defined at line 148 of file ../../src/storage/lib/ftl/ftln/volume.cc

void VolumeImpl (VolumeImpl && )

VolumeImpl is neither copyable nor movable.

Defined at line 153 of file ../../src/storage/lib/ftl/ftln/volume.h

zx_status_t SetNewWearLeveling (bool state)

Defined at line 157 of file ../../src/storage/lib/ftl/ftln/volume.cc

bool OnVolumeAdded (const XfsVol * ftl)

Internal notification of added volumes. This is forwarded to

FtlInstance::OnVolumeAdded.

Defined at line 164 of file ../../src/storage/lib/ftl/ftln/volume.cc

std::string DiagnoseKnownIssues ()

Returns empty string if no analysis is given, otherwise the string will

contain analysis of the FTL for known issues.

Defined at line 175 of file ../../src/storage/lib/ftl/ftln/volume.cc

void * GetInternalVolumeForTest ()

Return an unowned pointer for the internal XfsVol. This supports inspecting and manipulating

internal data while also providing the setup infrastructure that is used in the main code

paths.

Defined at line 179 of file ../../src/storage/lib/ftl/ftln/volume.cc