add lvmthinscan to CLI
This commit is contained in:
@ -239,7 +239,7 @@ __PACKAGE__->register_method ({
|
|||||||
}});
|
}});
|
||||||
|
|
||||||
__PACKAGE__->register_method ({
|
__PACKAGE__->register_method ({
|
||||||
name => 'thinlvmscan',
|
name => 'lvmthinscan',
|
||||||
path => 'lvmthin',
|
path => 'lvmthin',
|
||||||
method => 'GET',
|
method => 'GET',
|
||||||
description => "List local LVM Thin Pools.",
|
description => "List local LVM Thin Pools.",
|
||||||
@ -270,6 +270,7 @@ __PACKAGE__->register_method ({
|
|||||||
},
|
},
|
||||||
code => sub {
|
code => sub {
|
||||||
my ($param) = @_;
|
my ($param) = @_;
|
||||||
|
|
||||||
return PVE::Storage::LvmThinPlugin::list_thinpools($param->{vg});
|
return PVE::Storage::LvmThinPlugin::list_thinpools($param->{vg});
|
||||||
}});
|
}});
|
||||||
|
|
||||||
|
|||||||
@ -159,6 +159,13 @@ our $cmddef = {
|
|||||||
printf "$rec->{vg}\n";
|
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', [],
|
zfsscan => [ "PVE::API2::Storage::Scan", 'zfsscan', [],
|
||||||
{ node => $nodename }, sub {
|
{ node => $nodename }, sub {
|
||||||
my $res = shift;
|
my $res = shift;
|
||||||
|
|||||||
Reference in New Issue
Block a user