23 #ifndef STORAGE_LVM_PV_H 24 #define STORAGE_LVM_PV_H 27 #include "storage/Devices/Device.h" 109 const Impl& get_impl()
const;
111 virtual LvmPv* clone()
const override;
LvmVg * get_lvm_vg()
Return the volume group the physical volume is used in.
static std::vector< LvmPv * > get_all(Devicegraph *devicegraph)
Get all LvmPvs.
A Volume Group of the Logical Volume Manager (LVM).
Definition: LvmVg.h:60
bool has_blk_device() const
Check whether the physical volume has a block device.
static LvmPv * create(Devicegraph *devicegraph)
Create a device of type LvmPv.
The main container of the libstorage-ng.
Definition: Devicegraph.h:169
An abstract Block Device.
Definition: BlkDevice.h:48
An abstract base class for storage devices.
Definition: Device.h:81
LvmPv * to_lvm_pv(Device *device)
Converts pointer to Device to pointer to LvmPv.
bool is_lvm_pv(const Device *device)
Checks whether device points to a LvmPv.
The storage namespace.
Definition: Actiongraph.h:39
bool has_lvm_vg() const
Check whether the physical volume is part of a volume group.
unsigned long long get_usable_size() const
Get the size of the PV usable for extents in bytes.
BlkDevice * get_blk_device()
Return the block device this physical volume is using.