}});
__PACKAGE__->register_method ({
- name => 'thinlvmscan',
+ name => 'lvmthinscan',
path => 'lvmthin',
method => 'GET',
description => "List local LVM Thin Pools.",
},
code => sub {
my ($param) = @_;
+
return PVE::Storage::LvmThinPlugin::list_thinpools($param->{vg});
}});
printf "$rec->{vg}\n";
}
}],
+ lvmthinscan => [ "PVE::API2::Storage::Scan", 'lvmthinscan', ['vg'],
+ { node => $nodename }, sub {
+ my $res = shift;
+ foreach my $rec (@$res) {
+ printf "$rec->{lv}\n";
+ }
+ }],
zfsscan => [ "PVE::API2::Storage::Scan", 'zfsscan', [],
{ node => $nodename }, sub {
my $res = shift;