add API for LVM management

currently only list and create,
the list is in a format so that we can use it in an extjs tree

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2018-07-30 10:26:00 +02:00
committed by Dietmar Maurer
parent 8cccb3447b
commit 8b6842caa2
4 changed files with 192 additions and 1 deletions

View File

@ -8,11 +8,16 @@ use PVE::Diskmanage;
use HTTP::Status qw(:constants);
use PVE::JSONSchema qw(get_standard_option);
use PVE::API2::Disks::LVM;
use PVE::RESTHandler;
use base qw(PVE::RESTHandler);
use Data::Dumper;
__PACKAGE__->register_method ({
subclass => "PVE::API2::Disks::LVM",
path => 'lvm',
});
__PACKAGE__->register_method ({
name => 'index',
@ -42,6 +47,7 @@ __PACKAGE__->register_method ({
{ name => 'list' },
{ name => 'initgpt' },
{ name => 'smart' },
{ name => 'lvm' },
];
return $result;