add volume_size_info sub

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier
2012-07-27 08:00:12 +02:00
committed by Dietmar Maurer
parent 6d64e9e065
commit 20ccac1b6d

View File

@ -114,6 +114,16 @@ sub file_size_info {
return PVE::Storage::Plugin::file_size_info($filename, $timeout);
}
sub volume_size_info {
my ($cfg, $volid, $timeout) = @_;
my ($storeid, $volname) = parse_volume_id($volid);
my $scfg = storage_config($cfg, $storeid);
my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
return $plugin->volume_size_info($scfg, $storeid, $volname, $timeout);
}
sub get_image_dir {
my ($cfg, $storeid, $vmid) = @_;
@ -455,6 +465,7 @@ sub template_list {
return $res;
}
sub vdisk_list {
my ($cfg, $storeid, $vmid, $vollist) = @_;