[pve-devel] rbd alloc_image problem
Stefan Priebe - Profihost AG
s.priebe at profihost.ag
Mon Mar 25 07:36:27 CET 2013
I find this one easier to read otherwise I think it's fine.
Int($size/1024+1)
Stefab
Am 25.03.2013 um 06:35 schrieb Dietmar Maurer <dietmar at proxmox.com>:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20130325/a42bedb4/attachment.htm>
More information about the pve-devel
mailing list