storage/reflink: get VM dir from less arbitrary-looking path

This commit is contained in:
Rusty Bird 2020-01-28 13:40:13 +00:00
parent 12d882b355
commit 56f6a6ef65
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -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):