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:
committed by
Dietmar Maurer
parent
8cccb3447b
commit
8b6842caa2
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user