The previous method of summing the subvolumes' req_size doesn't work when the initial layout is a product of autopart since the base sizes do not match the actual sizes due to growth. --- blivet/devicefactory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py index 50362c1..8aad76e 100644 --- a/blivet/devicefactory.py +++ b/blivet/devicefactory.py @@ -1584,7 +1584,7 @@ class BTRFSFactory(DeviceFactory): # automatic if self.container and not self.device: # For new subvols the size is in addition to the volume's size. - size += sum(s.req_size for s in self.container.subvolumes) + size += self.container.size
size += self._get_device_space() elif self.container_size == SIZE_POLICY_MAX: