libstorage-ng
Toggle main menu visibility
Loading...
Searching...
No Matches
LvmDevicesFile.h
1
/*
2
* Copyright (c) 2025 SUSE LLC
3
*
4
* All Rights Reserved.
5
*
6
* This program is free software; you can redistribute it and/or modify it
7
* under the terms of version 2 of the GNU General Public License as published
8
* by the Free Software Foundation.
9
*
10
* This program is distributed in the hope that it will be useful, but WITHOUT
11
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
* more details.
14
*
15
* You should have received a copy of the GNU General Public License along
16
* with this program; if not, contact Novell, Inc.
17
*
18
* To contact Novell about this file by physical or electronic mail, you may
19
* find current contact information at www.novell.com.
20
*/
21
22
23
#ifndef STORAGE_LVM_DEVICES_FILE_H
24
#define STORAGE_LVM_DEVICES_FILE_H
25
26
27
namespace
storage
28
{
29
30
class
Devicegraph
;
31
32
33
class
LvmDevicesFile
34
{
35
public
:
36
40
enum class
Status
41
{
45
DISABLED
,
46
50
ENABLED
,
51
55
MISSING
56
};
57
58
64
static
Status
status
();
65
66
81
static
void
create
(
const
Devicegraph
* devicegraph);
82
83
};
84
85
}
86
87
88
#endif
storage::Devicegraph
The main container of the libstorage-ng.
Definition
Devicegraph.h:170
storage::LvmDevicesFile
Definition
LvmDevicesFile.h:34
storage::LvmDevicesFile::status
static Status status()
Query the status of the LVM devices file.
storage::LvmDevicesFile::create
static void create(const Devicegraph *devicegraph)
Add all LVM PVs in the devicegraph to the LVM devices file thus creating it.
storage::LvmDevicesFile::Status
Status
Status of LVM devices file.
Definition
LvmDevicesFile.h:41
storage::LvmDevicesFile::Status::DISABLED
@ DISABLED
Use of the LVM devices file is disabled.
Definition
LvmDevicesFile.h:45
storage::LvmDevicesFile::Status::MISSING
@ MISSING
Use of the LVM devices file is enabled but the file itself is missing.
Definition
LvmDevicesFile.h:55
storage::LvmDevicesFile::Status::ENABLED
@ ENABLED
Use of the LVM devices file is enabled.
Definition
LvmDevicesFile.h:50
storage
The storage namespace.
Definition
Actiongraph.h:40
storage
LvmDevicesFile.h
Generated by
1.17.0