23 #ifndef STORAGE_LVM_LV_H 24 #define STORAGE_LVM_LV_H 27 #include "storage/Devices/BlkDevice.h" 42 static LvmLv* create(
Devicegraph* devicegraph,
const std::string& vg_name,
const std::string& lv_name);
45 static std::vector<LvmLv*> get_all(
Devicegraph* devicegraph);
46 static std::vector<const LvmLv*> get_all(
const Devicegraph* devicegraph);
52 void set_lv_name(
const std::string& lv_name);
54 unsigned int get_stripes()
const;
55 void set_stripes(
unsigned int stripes);
57 unsigned long get_stripe_size()
const;
58 void set_stripe_size(
unsigned long stripe_size);
70 const Impl& get_impl()
const;
72 virtual LvmLv* clone()
const override;
81 bool is_lvm_lv(
const Device* device);
A Logical Volume of the Logical Volume Manager (LVM).
Definition: LvmLv.h:38
const LvmVg * get_lvm_vg() const
Return volume group this logical volume belongs to.
const std::string & get_lv_name() const
Get logical volume name.
A Volume Group of the Logical Volume Manager (LVM).
Definition: LvmVg.h:53
The master container of the libstorage.
Definition: Devicegraph.h:133
An abstract Block Device.
Definition: BlkDevice.h:40
An abstract base class of storage devices, and a vertex in the Devicegraph.
Definition: Device.h:73
The storage namespace.
Definition: Actiongraph.h:36