API: add scan method for glusterfs
This commit is contained in:
8
pvesm
8
pvesm
@ -143,6 +143,14 @@ my $cmddef = {
|
||||
printf "%-${maxlen}s %s\n", $rec->{path}, $rec->{options};
|
||||
}
|
||||
}],
|
||||
glusterfsscan => [ "PVE::API2::Storage::Scan", 'glusterfsscan', ['server'],
|
||||
{ node => $nodename }, sub {
|
||||
my $res = shift;
|
||||
|
||||
foreach my $rec (@$res) {
|
||||
printf "%s\n", $rec->{volname};
|
||||
}
|
||||
}],
|
||||
iscsiscan => [ "PVE::API2::Storage::Scan", 'iscsiscan', ['server'],
|
||||
{ node => $nodename }, sub {
|
||||
my $res = shift;
|
||||
|
||||
Reference in New Issue
Block a user