API: add scan method for glusterfs

This commit is contained in:
Dietmar Maurer
2013-08-13 10:06:03 +02:00
parent f78bb9c87d
commit 3cf5e19edc
3 changed files with 56 additions and 0 deletions

8
pvesm
View File

@ -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;