add volume_size_info for generic plugin
this use path and file_size_info like before Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
20ccac1b6d
commit
e47e548e51
@ -481,6 +481,13 @@ sub file_size_info {
|
||||
return wantarray ? ($size, $format, $used) : $size;
|
||||
}
|
||||
|
||||
sub volume_size_info {
|
||||
my ($class, $scfg, $storeid, $volname, $timeout) = @_;
|
||||
my $path = $class->path($scfg, $volname);
|
||||
return file_size_info($path, $timeout);
|
||||
|
||||
}
|
||||
|
||||
sub list_images {
|
||||
my ($class, $storeid, $scfg, $vmid, $vollist, $cache) = @_;
|
||||
|
||||
@ -585,4 +592,5 @@ sub check_connection {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
Reference in New Issue
Block a user