[pve-devel] rbd alloc_image problem

Dietmar Maurer dietmar at proxmox.com
Mon Mar 25 08:18:22 CET 2013

But your solution grow the image by 1MB by default!

From: Stefan Priebe - Profihost AG [mailto:s.priebe at profihost.ag]
Sent: Montag, 25. März 2013 07:36
To: Dietmar Maurer
Cc: pve-devel at pve.proxmox.com
Subject: Re: [pve-devel] rbd alloc_image problem

I find this one easier to read otherwise I think it's fine.



Am 25.03.2013 um 06:35 schrieb Dietmar Maurer <dietmar at proxmox.com<mailto:dietmar at proxmox.com>>:
User reports problems on restore:


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

More information about the pve-devel mailing list