add volume_size_info sub
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
6d64e9e065
commit
20ccac1b6d
@ -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) = @_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user