23 #ifndef STORAGE_DM_RAID_H 24 #define STORAGE_DM_RAID_H 27 #include "storage/Devices/Partitionable.h" 59 unsigned long long size);
108 const Impl& get_impl()
const;
110 virtual DmRaid* clone()
const override;
static std::vector< DmRaid * > get_all(Devicegraph *devicegraph)
Get all DmRaids.
bool is_dm_raid(const Device *device)
Checks whether device points to a DmRaid.
A start/length pair with a block size.
Definition: Region.h:84
The main container of the libstorage-ng.
Definition: Devicegraph.h:169
bool is_rotational() const
Return whether the DM RAID is of rotational or non-rotational type.
An abstract base class for storage devices.
Definition: Device.h:81
Definition: Partitionable.h:39
static DmRaid * find_by_name(Devicegraph *devicegraph, const std::string &name)
Find a DmRaid by its name.
The storage namespace.
Definition: Actiongraph.h:38
std::vector< BlkDevice * > get_blk_devices()
Return blk devices used for the DmRaid.
static DmRaid * create(Devicegraph *devicegraph, const std::string &name)
Create a device of type DmRaid.
A DM RAID device.
Definition: DmRaid.h:37
DmRaid * to_dm_raid(Device *device)
Converts pointer to Device to pointer to DmRaid.