Namespaces

Enumerations

enum class OperationType
Name Value Comments
kRead 0 --
kWrite 1 --
kTrim 2 --
kWriteFua 3 --
kMaxValue kWriteFua

For FuzzedDataProvider

Defined at line 17 of file ../../zircon/system/ulib/storage/operation/include/storage/operation/operation.h

Records

Functions

  • zx::result<std::string> GetTopologicalPath (fidl::UnownedClientEnd<fuchsia_device::Controller> channel)

    Defined at line 12 of file ../../src/storage/lib/utils/topological_path.cc

  • zx::result<std::string> GetTopologicalPath (const std::string & path)

    Defined at line 22 of file ../../src/storage/lib/utils/topological_path.cc

  • const char * OperationTypeToString (OperationType type)

    Defined at line 15 of file ../../zircon/system/ulib/storage/operation/operation.cc

  • template <typename T>
    uint64_t BlockCountImpl (cpp20::span<const T> operations)

    Defined at line 29 of file ../../zircon/system/ulib/storage/operation/operation.cc

  • uint64_t BlockCount (cpp20::span<const UnbufferedOperation> operations)

    Sums the |length| of all requests. It will assert if overflow occurs; the caller is responsible

    for making sure this does not happen.

    Defined at line 42 of file ../../zircon/system/ulib/storage/operation/operation.cc

  • std::ostream & operator<< (std::ostream & , const BufferedOperation & )

    Defined at line 47 of file ../../zircon/system/ulib/storage/operation/operation.cc

  • std::ostream & operator<< (std::ostream & , const cpp20::span<const BufferedOperation> & )

    Defined at line 54 of file ../../zircon/system/ulib/storage/operation/operation.cc

  • uint64_t BlockCount (cpp20::span<const BufferedOperation> operations)

    Sums the |length| of all requests. It will assert if overflow occurs; the caller is responsible

    for making sure this does not happen.

    Defined at line 37 of file ../../zircon/system/ulib/storage/operation/operation.cc

  • zx::result<FvmPartition> CreateFvmPartition (const std::string & device_path, size_t slice_size, const FvmOptions & options)

    Formats the given block device to be FVM managed, launches an FVM component, and creates a new

    partition on the device.

    Returns the path to the newly created block device.

    Defined at line 89 of file ../../src/storage/testing/fvm.cc

  • zx::result<FvmPartition> OpenFvmPartition (const std::string & device_path, std::string_view partition_name)

    Launches an FVM component for the given device, and opens the partition which was previously

    created by `CreateFvmPartition`.

    Defined at line 56 of file ../../src/storage/testing/fvm.cc