23 #ifndef STORAGE_BCACHE_CSET_H 24 #define STORAGE_BCACHE_CSET_H 27 #include "storage/Devices/Device.h" 63 void set_uuid(
const std::string& uuid);
109 const Impl& get_impl()
const;
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 BcacheCset * find_by_uuid(Devicegraph *devicegraph, const std::string &uuid)
Find a BcacheCset by its UUID.
std::vector< const BlkDevice * > get_blk_devices() const
Returns the BlkDevices used by this BcacheCset.
The main container of the libstorage-ng.
Definition: Devicegraph.h:169
BcacheCset * to_bcache_cset(Device *device)
Converts pointer to Device to pointer to BcacheCset.
std::vector< const Bcache * > get_bcaches() const
Returns the Bcaches using this BcacheCset.
static std::vector< BcacheCset * > get_all(Devicegraph *devicegraph)
Get all BcacheCsets.
An abstract base class for storage devices.
Definition: Device.h:81
A bcache cache set.
Definition: BcacheCset.h:41
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.
The storage namespace.
Definition: Actiongraph.h:39
const std::string & get_uuid() const
Return the UUID of the BcacheCset.