23#ifndef STORAGE_STRAY_BLK_DEVICE_H
24#define STORAGE_STRAY_BLK_DEVICE_H
27#include "storage/Devices/BlkDevice.h"
70 unsigned long long size);
102 const Impl& get_impl()
const;
An abstract Block Device.
Definition: BlkDevice.h:49
An abstract base class for storage devices.
Definition: Device.h:82
The main container of the libstorage-ng.
Definition: Devicegraph.h:170
A start/length pair with a block size.
Definition: Region.h:85
This class represents stray block devices.
Definition: StrayBlkDevice.h:49
static StrayBlkDevice * create(Devicegraph *devicegraph, const std::string &name, unsigned long long size)
Create a device of type StrayBlkDevice.
static std::vector< StrayBlkDevice * > get_all(Devicegraph *devicegraph)
Get all StrayBlkDevices.
static const StrayBlkDevice * find_by_name(const Devicegraph *devicegraph, const std::string &name)
Find a StrayBlkDevice by its name.
static StrayBlkDevice * create(Devicegraph *devicegraph, const std::string &name, const Region ®ion)
Create a device of type StrayBlkDevice.
static StrayBlkDevice * find_by_name(Devicegraph *devicegraph, const std::string &name)
Find a StrayBlkDevice by its name.
static StrayBlkDevice * create(Devicegraph *devicegraph, const std::string &name)
Create a device of type StrayBlkDevice.
static std::vector< const StrayBlkDevice * > get_all(const Devicegraph *devicegraph)
Get all StrayBlkDevices.
The storage namespace.
Definition: Actiongraph.h:39
bool is_stray_blk_device(const Device *device)
Checks whether device points to a StrayBlkDevice.
StrayBlkDevice * to_stray_blk_device(Device *device)
Converts pointer to Device to pointer to StrayBlkDevice.