storage: copy allocation and capacity also on cross-pool clones

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1210265

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2015-04-10 12:59:20 +02:00
parent 1f6faa33dc
commit 616df760be
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<volume>
<name>new1.img</name>
<capacity>1073</capacity>
<allocation>1073</allocation>
<capacity>1000000</capacity>
<allocation>50000</allocation>
<target>
<format type="qcow2"/>
<features>

View File

@ -619,11 +619,11 @@ class StorageVolume(_StorageObject):
parsexml=self._input_vol.XMLDesc(0))
self.format = parsevol.format
self.capacity = parsevol.capacity
self.allocation = parsevol.allocation
if only_format:
return
self.pool = self._input_vol.storagePoolLookupByVolume()
self.capacity = parsevol.capacity
self.allocation = parsevol.allocation
##########################