[pve-devel] rbd alloc_image problem
Alexandre DERUMIER
aderumier at odiso.com
Mon Mar 25 08:14:31 CET 2013
it's ok for me.
But how can the user get floating number for size ? I think we always use multiple of 1024 in gui?
----- Mail original -----
De: "Dietmar Maurer" <dietmar at proxmox.com>
À: pve-devel at pve.proxmox.com
Envoyé: Lundi 25 Mars 2013 06:35:07
Objet: [pve-devel] rbd alloc_image problem
User reports problems on restore:
http://forum.proxmox.com/threads/13296-Ceph-Restore-Failure
We do:
my $cmd = &$rbd_cmd($scfg, $storeid, 'create', '--format' , 2, '--size', ($size/1024), $name);
So the size is a float, but rbd needs integer?
Maybe we should use:
'--size', int(($size + 1023)/1024)
any objections?
_______________________________________________
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