23 #ifndef STORAGE_BCACHE_H 24 #define STORAGE_BCACHE_H 27 #include "storage/Devices/BlkDevice.h" 47 unsigned int get_number()
const;
84 const Impl& get_impl()
const;
86 virtual Bcache* clone()
const override;
95 bool is_bcache(
const Device* device);
const BlkDevice * get_blk_device() const
Get the BlkDevice used as backing device.
static std::vector< Bcache * > get_all(Devicegraph *devicegraph)
Get all Bcaches.
static bool compare_by_number(const Bcache *lhs, const Bcache *rhs)
Compare (less than) two Bcaches by number.
A bcache device.
Definition: Bcache.h:40
bool has_bcache_cset() const
Returns true if a cache is attached.
The master container of the libstorage.
Definition: Devicegraph.h:153
An abstract Block Device.
Definition: BlkDevice.h:41
const BcacheCset * get_bcache_cset() const
Get the BcacheCset used as cache.
An abstract base class of storage devices, and a vertex in the Devicegraph.
Definition: Device.h:75
A bcache cache set.
Definition: BcacheCset.h:41
Bcache * to_bcache(Device *device)
Converts pointer to Device to pointer to Bcache.
The storage namespace.
Definition: Actiongraph.h:37