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