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;
An abstract base class for storage devices.
Definition: Device.h:82
The main container of the libstorage-ng.
Definition: Devicegraph.h:170
A DM RAID device.
Definition: DmRaid.h:38
static DmRaid * find_by_name(Devicegraph *devicegraph, const std::string &name)
Find a DmRaid by its name.
std::vector< BlkDevice * > get_blk_devices()
Return blk devices used for the DmRaid.
static std::vector< DmRaid * > get_all(Devicegraph *devicegraph)
Get all DmRaids.
static const DmRaid * find_by_name(const Devicegraph *devicegraph, const std::string &name)
Find a DmRaid by its name.
static std::vector< const DmRaid * > get_all(const Devicegraph *devicegraph)
Get all DmRaids.
static DmRaid * create(Devicegraph *devicegraph, const std::string &name)
Create a device of type DmRaid.
static DmRaid * create(Devicegraph *devicegraph, const std::string &name, const Region ®ion)
Create a device of type DmRaid.
static DmRaid * create(Devicegraph *devicegraph, const std::string &name, unsigned long long size)
Create a device of type DmRaid.
std::vector< const BlkDevice * > get_blk_devices() const
Return blk devices used for the DmRaid.
bool is_rotational() const
Return whether the DM RAID is of rotational or non-rotational type.
Definition: Partitionable.h:40
A start/length pair with a block size.
Definition: Region.h:85
The storage namespace.
Definition: Actiongraph.h:39
bool is_dm_raid(const Device *device)
Checks whether device points to a DmRaid.
DmRaid * to_dm_raid(Device *device)
Converts pointer to Device to pointer to DmRaid.