From 56f6a6ef65110959964e31ebe597e01dec461ce4 Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Tue, 28 Jan 2020 13:40:13 +0000 Subject: [PATCH] storage/reflink: get VM dir from less arbitrary-looking path --- qubes/storage/reflink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/storage/reflink.py b/qubes/storage/reflink.py index ed6d758e..28a6993f 100644 --- a/qubes/storage/reflink.py +++ b/qubes/storage/reflink.py @@ -177,7 +177,7 @@ class ReflinkVolume(qubes.storage.Volume): def remove(self): self.pool._volumes.pop(self, None) # pylint: disable=protected-access self._remove_all_images() - _remove_empty_dir(os.path.dirname(self._path_dirty)) + _remove_empty_dir(os.path.dirname(self._path_vid)) return self def _remove_all_images(self):