add API for ZFS management

a list, a detail and a create api call

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2018-08-07 16:51:09 +02:00
committed by Dietmar Maurer
parent 5e35281da2
commit c84106edc9
3 changed files with 359 additions and 0 deletions

View File

@ -11,6 +11,7 @@ use PVE::JSONSchema qw(get_standard_option);
use PVE::API2::Disks::LVM;
use PVE::API2::Disks::LVMThin;
use PVE::API2::Disks::Directory;
use PVE::API2::Disks::ZFS;
use PVE::RESTHandler;
@ -31,6 +32,11 @@ __PACKAGE__->register_method ({
path => 'directory',
});
__PACKAGE__->register_method ({
subclass => "PVE::API2::Disks::ZFS",
path => 'zfs',
});
__PACKAGE__->register_method ({
name => 'index',
path => '',
@ -62,6 +68,7 @@ __PACKAGE__->register_method ({
{ name => 'lvm' },
{ name => 'lvmthin' },
{ name => 'directory' },
{ name => 'zfs' },
];
return $result;