23#ifndef STORAGE_BCACHE_CSET_H
24#define STORAGE_BCACHE_CSET_H
27#include "storage/Devices/Device.h"
41 class BcacheCset :
public Device
51 static BcacheCset* load(
Devicegraph* devicegraph,
const xmlNode* node);
109 const Impl& get_impl()
const;
111 virtual BcacheCset* clone()
const override;
113 BcacheCset(Impl* impl);
A bcache cache set.
Definition BcacheCset.h:42
void set_uuid(const std::string &uuid)
Set the UUID of the BcacheCset.
static bool compare_by_uuid(const BcacheCset *lhs, const BcacheCset *rhs)
Compare (less than) two BcacheCsets by UUID.
const std::string & get_uuid() const
Return the UUID of the BcacheCset.
static std::vector< const BcacheCset * > get_all(const Devicegraph *devicegraph)
Get all BcacheCsets.
static BcacheCset * find_by_uuid(Devicegraph *devicegraph, const std::string &uuid)
Find a BcacheCset by its UUID.
std::vector< const Bcache * > get_bcaches() const
Returns the Bcaches using this BcacheCset.
std::vector< const BlkDevice * > get_blk_devices() const
Returns the BlkDevices used by this BcacheCset.
static std::vector< BcacheCset * > get_all(Devicegraph *devicegraph)
Get all BcacheCsets.
static BcacheCset * create(Devicegraph *devicegraph)
Create a device of type BcacheCset.
static const BcacheCset * find_by_uuid(const Devicegraph *devicegraph, const std::string &uuid)
Find a BcacheCset by its UUID.
A bcache device.
Definition Bcache.h:79
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
The storage namespace.
Definition Actiongraph.h:40
BcacheCset * to_bcache_cset(Device *device)
Converts pointer to Device to pointer to BcacheCset.
bool is_bcache_cset(const Device *device)
Checks whether device points to a BcacheCset.