[pve-devel] [PATCH 10/44] rbd: volume_size_info : parse_volname

Dietmar Maurer dietmar at proxmox.com
Thu Feb 14 09:43:38 CET 2013


Why do we need that?

> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Alexandre Derumier
> Sent: Dienstag, 05. Februar 2013 12:56
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH 10/44] rbd: volume_size_info : parse_volname
> 
> 
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
>  PVE/Storage/RBDPlugin.pm |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index
> 8bcdb59..ab1fde6 100644
> --- a/PVE/Storage/RBDPlugin.pm
> +++ b/PVE/Storage/RBDPlugin.pm
> @@ -422,7 +422,8 @@ sub deactivate_volume {  sub volume_size_info {
>      my ($class, $scfg, $storeid, $volname, $timeout) = @_;
> 
> -    my ($size, undef) = rbd_volume_info($scfg, $storeid, $volname);
> +    my ($vtype, $name, $vmid) = $class->parse_volname($volname);
> +    my ($size, undef) = rbd_volume_info($scfg, $storeid, $name);
>      return $size;
>  }
> 
> --
> 1.7.10.4
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel





More information about the pve-devel mailing list