storage/file: fix resize

Fixes QubesOS/qubes-issues#5518
This commit is contained in:
Marek Marczykowski-Górecki 2019-12-14 15:48:49 +01:00
parent 35fa733a67
commit d181c0f354
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -252,7 +252,7 @@ class FileVolume(qubes.storage.Volume):
# resize loop device # resize loop device
subprocess.check_call(['losetup', '--set-capacity', subprocess.check_call(['losetup', '--set-capacity',
loop_dev]) loop_dev])
self.size = size self._size = size
def commit(self): def commit(self):
msg = 'Tried to commit a non commitable volume {!r}'.format(self) msg = 'Tried to commit a non commitable volume {!r}'.format(self)