summaryrefslogtreecommitdiff
path: root/hscript/disk.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-26 01:09:57 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-26 01:09:57 -0500
commitcd2ab0ea31fd4dc9305c1d5e08100eafaff19f7e (patch)
tree56f0f158ae77150952014557b716986199ad4938 /hscript/disk.hh
parenta5da0c07e7202f44b03acfc1324fb410bff94496 (diff)
downloadhorizon-cd2ab0ea31fd4dc9305c1d5e08100eafaff19f7e.tar.gz
horizon-cd2ab0ea31fd4dc9305c1d5e08100eafaff19f7e.tar.bz2
horizon-cd2ab0ea31fd4dc9305c1d5e08100eafaff19f7e.tar.xz
horizon-cd2ab0ea31fd4dc9305c1d5e08100eafaff19f7e.zip
hscript: Implement lvm_pv, add tests
Diffstat (limited to 'hscript/disk.hh')
-rw-r--r--hscript/disk.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/hscript/disk.hh b/hscript/disk.hh
index 90deca4..53527f3 100644
--- a/hscript/disk.hh
+++ b/hscript/disk.hh
@@ -116,7 +116,12 @@ public:
class Encrypt : public Key {
};
-class LVMPhysical : public Key {
+class LVMPhysical : public StringKey {
+private:
+ LVMPhysical(int _line, const std::string &_d) : StringKey(_line, _d) {}
+public:
+ static Key *parseFromData(const std::string &, int, int*, int*);
+ bool execute(ScriptOptions) const override;
};
class LVMGroup : public Key {