storage/lvm: fix size reporting just after creating LV

Force cache refresh after registering new pool - it might be just
created.

QubesOS/qubes-issues#3438
This commit is contained in:
Marek Marczykowski-Górecki 2018-01-11 03:56:30 +01:00
parent a66c9afb18
commit 377f331d52
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -97,7 +97,8 @@ class ThinPool(qubes.storage.Pool):
return volume
def setup(self):
pass # TODO Should we create a non existing pool?
reset_cache()
# TODO Should we create a non existing pool?
def get_volume(self, vid):
''' Return a volume with given vid'''