libstorage-ng
 
Loading...
Searching...
No Matches
storage::LvmDevicesFile Class Reference

Public Types

enum class  Status { DISABLED , ENABLED , MISSING }
 Status of LVM devices file. More...
 

Static Public Member Functions

static Status status ()
 Query the status of the LVM devices file.
 
static void create (const Devicegraph *devicegraph)
 Add all LVM PVs in the devicegraph to the LVM devices file thus creating it.
 

Member Enumeration Documentation

◆ Status

Status of LVM devices file.

Enumerator
DISABLED 

Use of the LVM devices file is disabled.

ENABLED 

Use of the LVM devices file is enabled.

MISSING 

Use of the LVM devices file is enabled but the file itself is missing.

Member Function Documentation

◆ create()

static void storage::LvmDevicesFile::create ( const Devicegraph * devicegraph)
static

Add all LVM PVs in the devicegraph to the LVM devices file thus creating it.

If the LVM devices file already exists libstorage-ng cannot see PVs on disk that are not included the LVM devices file.

Should only be called if the status is DISABLED.

Exceptions
Exception

◆ status()

static Status storage::LvmDevicesFile::status ( )
static

Query the status of the LVM devices file.

Exceptions
Exception

The documentation for this class was generated from the following file: