Fix file storage resize

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-08-28 19:51:33 +02:00
parent 4733e836ce
commit e7caa14a85
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE

View File

@ -136,6 +136,7 @@ class FilePool(qubes.storage.Pool):
# resize loop device # resize loop device
subprocess.check_call(['sudo', 'losetup', '--set-capacity', subprocess.check_call(['sudo', 'losetup', '--set-capacity',
loop_dev]) loop_dev])
volume.size = size
def remove(self, volume): def remove(self, volume):
if not volume.internal: if not volume.internal: