mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-02 09:47:16 +03:00
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:
parent
1f6faa33dc
commit
616df760be
@ -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>
|
||||
|
@ -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
|
||||
|
||||
|
||||
##########################
|
||||
|
Loading…
x
Reference in New Issue
Block a user