23 #ifndef STORAGE_BCACHE_CSET_H
24 #define STORAGE_BCACHE_CSET_H
27 #include "storage/Devices/Device.h"
109 const Impl& get_impl()
const;
std::vector< const Bcache * > get_bcaches() const
Returns the Bcaches using this BcacheCset.
The storage namespace.
Definition: Actiongraph.h:39
BcacheCset * to_bcache_cset(Device *device)
Converts pointer to Device to pointer to BcacheCset.
static BcacheCset * create(Devicegraph *devicegraph)
Create a device of type BcacheCset.
bool is_bcache_cset(const Device *device)
Checks whether device points to a BcacheCset.
static bool compare_by_uuid(const BcacheCset *lhs, const BcacheCset *rhs)
Compare (less than) two BcacheCsets by UUID.
void set_uuid(const std::string &uuid)
Set the UUID of the BcacheCset.
A bcache cache set.
Definition: BcacheCset.h:42
The main container of the libstorage-ng.
Definition: Devicegraph.h:170
static std::vector< BcacheCset * > get_all(Devicegraph *devicegraph)
Get all BcacheCsets.
std::vector< const BlkDevice * > get_blk_devices() const
Returns the BlkDevices used by this BcacheCset.
An abstract base class for storage devices.
Definition: Device.h:82
static std::vector< const BcacheCset * > get_all(const Devicegraph *devicegraph)
Get all BcacheCsets.
const std::string & get_uuid() const
Return the UUID of the BcacheCset.
static BcacheCset * find_by_uuid(Devicegraph *devicegraph, const std::string &uuid)
Find a BcacheCset by its UUID.
static const BcacheCset * find_by_uuid(const Devicegraph *devicegraph, const std::string &uuid)
Find a BcacheCset by its UUID.