23#ifndef STORAGE_MULTIPATH_H
24#define STORAGE_MULTIPATH_H
27#include "storage/Devices/Partitionable.h"
59 unsigned long long size);
122 const Impl& get_impl()
const;
124 virtual Multipath* clone()
const override;
An abstract base class for storage devices.
Definition: Device.h:82
The main container of the libstorage-ng.
Definition: Devicegraph.h:170
A multipath device.
Definition: Multipath.h:38
bool is_rotational() const
Return whether the multipath device is of rotational or non-rotational type.
static const Multipath * find_by_name(const Devicegraph *devicegraph, const std::string &name)
Find a Multipath by its name.
static std::vector< Multipath * > get_all(Devicegraph *devicegraph)
Get all Multipaths.
const std::string & get_model() const
The model as reported by multipath tools.
static Multipath * create(Devicegraph *devicegraph, const std::string &name, const Region ®ion)
Create a device of type Multipath.
static Multipath * create(Devicegraph *devicegraph, const std::string &name)
Create a device of type Multipath.
const std::string & get_vendor() const
The vendor as reported by multipath tools.
static Multipath * find_by_name(Devicegraph *devicegraph, const std::string &name)
Find a Multipath by its name.
std::vector< const BlkDevice * > get_blk_devices() const
Return blk devices used for the Multipath.
static std::vector< const Multipath * > get_all(const Devicegraph *devicegraph)
Get all Multipaths.
static Multipath * create(Devicegraph *devicegraph, const std::string &name, unsigned long long size)
Create a device of type Multipath.
std::vector< BlkDevice * > get_blk_devices()
Return blk devices used for the Multipath.
Definition: Partitionable.h:40
A start/length pair with a block size.
Definition: Region.h:85
The storage namespace.
Definition: Actiongraph.h:40
bool is_multipath(const Device *device)
Checks whether device points to a Multipath.
Multipath * to_multipath(Device *device)
Converts pointer to Device to pointer to Multipath.