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:
Alexandre Derumier
2012-07-27 08:00:13 +02:00
committed by Dietmar Maurer
parent 20ccac1b6d
commit e47e548e51

View File

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