From 377f331d52f4edd82d13a59b76e71667e9d0b856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 11 Jan 2018 03:56:30 +0100 Subject: [PATCH] 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 --- qubes/storage/lvm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qubes/storage/lvm.py b/qubes/storage/lvm.py index e814bb06c..158dcaad7 100644 --- a/qubes/storage/lvm.py +++ b/qubes/storage/lvm.py @@ -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'''