-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* @file LvmUtils.h | ||
* @brief Provide linux LVM api wrapper for liblvm2app to manipulate snapshots. | ||
* @copyright Copyright 2023-2024 XUranus. All rights reserved. | ||
* @license This project is released under the Apache License. | ||
* @author XUranus([email protected]) | ||
*/ | ||
|
||
#ifndef VOLUMEBACKUP_LINUX_LVM_UTILS_HEADER | ||
#define VOLUMEBACKUP_LINUX_LVM_UTILS_HEADER | ||
|
||
#include <string> | ||
|
||
#ifdef __linux__ | ||
|
||
namespace volumeprotect { | ||
namespace linuxlvmutil { | ||
|
||
bool CreateSnapshot(const std::string& vg, const std::string& pv, const std::string& snapshotName); | ||
|
||
} | ||
} | ||
|
||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters