Skip to content

Commit

Permalink
storage/lvm: fix size reporting just after creating LV
Browse files Browse the repository at this point in the history
Force cache refresh after registering new pool - it might be just
created.

QubesOS/qubes-issues#3438
  • Loading branch information
marmarek committed Jan 11, 2018
1 parent a66c9af commit 377f331
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qubes/storage/lvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def init_volume(self, vm, volume_config):
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'''
Expand Down

0 comments on commit 377f331

Please sign in to comment.