[pve-devel] rbd alloc_image problem

Dietmar Maurer dietmar at proxmox.com
Mon Mar 25 06:35:07 CET 2013


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20130325/e7a5ba46/attachment.htm>


More information about the pve-devel mailing list