diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-26 01:09:57 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-26 01:09:57 -0500 |
commit | cd2ab0ea31fd4dc9305c1d5e08100eafaff19f7e (patch) | |
tree | 56f0f158ae77150952014557b716986199ad4938 /hscript/disk.hh | |
parent | a5da0c07e7202f44b03acfc1324fb410bff94496 (diff) | |
download | horizon-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.hh | 7 |
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 { |