[libvirt] [PATCH] storage: resize vol against real allocated size

2013-12-16 Thread Michal Privoznik
From: Wang Sen wang...@linux.vnet.ibm.com Currently, 'vol-resize --allocate' allocates new space at the vol-capacity offset. But the vol-capacity is not necessarily the same as vol-allocation. For instance:. [root@localhost ~]# virsh vol-list --pool tmp-pool --details Name

Re: [libvirt] [PATCH] storage: resize vol against real allocated size

2013-12-16 Thread Martin Kletzander
On Mon, Dec 16, 2013 at 02:29:15PM +0100, Michal Privoznik wrote: From: Wang Sen wang...@linux.vnet.ibm.com Currently, 'vol-resize --allocate' allocates new space at the vol-capacity offset. But the vol-capacity is not necessarily the same as vol-allocation. For instance:.

Re: [libvirt] [PATCH] storage: resize vol against real allocated size

2013-12-16 Thread Wang Sen
tested with dir type. [root@localhost ~]# virsh vol-create-as tmp-pool tmp-vol 1G Vol tmp-vol created [root@localhost ~]# virsh vol-list --pool tmp-pool --details Name PathType Capacity Allocation - tmp-vol