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;
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
bool has_lvm_vg() const
Check whether the physical volume is part of a volume group.
const LvmVg * get_lvm_vg() const
Return the volume group the physical volume is used in.
static std::vector< LvmPv * > get_all(Devicegraph *devicegraph)
Get all LvmPvs.
LvmVg * get_lvm_vg()
Return the volume group the physical volume is used in.
const BlkDevice * get_blk_device() const
Return the block device this physical volume is using.
bool has_blk_device() const
Check whether the physical volume has a block device.
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.
static std::vector< const LvmPv * > get_all(const Devicegraph *devicegraph)
Get all LvmPvs.
static LvmPv * create(Devicegraph *devicegraph)
Create a device of type LvmPv.
A Volume Group of the Logical Volume Manager (LVM).
Definition LvmVg.h:61
The storage namespace.
Definition Actiongraph.h:40
bool is_lvm_pv(const Device *device)
Checks whether device points to a LvmPv.
LvmPv * to_lvm_pv(Device *device)
Converts pointer to Device to pointer to LvmPv.