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;
path => 'lvm',
});
+__PACKAGE__->register_method ({
+ subclass => "PVE::API2::Disks::LVMThin",
+ path => 'lvmthin',
+});
+
+__PACKAGE__->register_method ({
+ subclass => "PVE::API2::Disks::Directory",
+ path => 'directory',
+});
+
+__PACKAGE__->register_method ({
+ subclass => "PVE::API2::Disks::ZFS",
+ path => 'zfs',
+});
+
__PACKAGE__->register_method ({
name => 'index',
path => '',
{ name => 'initgpt' },
{ name => 'smart' },
{ name => 'lvm' },
+ { name => 'lvmthin' },
+ { name => 'directory' },
+ { name => 'zfs' },
];
return $result;
my $entry = $disks->{$disk};
if ($type eq 'journal_disks') {
next if $entry->{osdid} >= 0;
- next if !$entry->{gpt};
+ next if !$entry->{gpt} && $entry->{used} ne 'LVM';
} elsif ($type eq 'unused') {
next if $entry->{used};
} elsif ($type ne '') {