libstorage-ng
 
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
27namespace storage
28{
29
30 class Devicegraph;
31
32
34 {
35 public:
36
40 enum class Status
41 {
46
51
56 };
57
58
64 static Status status();
65
66
76 static void create(const Devicegraph* devicegraph);
77
78 };
79
80}
81
82
83#endif
The main container of the libstorage-ng.
Definition Devicegraph.h:170
Definition LvmDevicesFile.h:34
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.
Status
Status of LVM devices file.
Definition LvmDevicesFile.h:41
@ DISABLED
Use of the LVM devices file is disabled.
Definition LvmDevicesFile.h:45
@ MISSING
Use of the LVM devices file is enabled but the file itself is missing.
Definition LvmDevicesFile.h:55
@ ENABLED
Use of the LVM devices file is enabled.
Definition LvmDevicesFile.h:50
The storage namespace.
Definition Actiongraph.h:40