From 06f46243ec9b366c5bd3864ca5d79dd7ec13e448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 18 Aug 2016 11:41:02 +0200 Subject: [PATCH] qubes/storage: add `resize` to Pool API It was already implemented by FilePool and used by Storage object, but wasn't included in base class. --- qubes/storage/__init__.py | 7 +++++++ qubes/storage/lvm.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/qubes/storage/__init__.py b/qubes/storage/__init__.py index b2ba0949..4d04a818 100644 --- a/qubes/storage/__init__.py +++ b/qubes/storage/__init__.py @@ -550,6 +550,13 @@ class Pool(object): ''' raise self._not_implemented("reset") + def resize(self, volume, size): + ''' Expands volume, throws + :py:class:`qubes.storage.StoragePoolException` if + given size is less than current_size + ''' + raise self._not_implemented("resize") + def revert(self, volume, revision=None): ''' Revert volume to previous revision ''' raise self._not_implemented("revert") diff --git a/qubes/storage/lvm.py b/qubes/storage/lvm.py index d1663be3..5aad339a 100644 --- a/qubes/storage/lvm.py +++ b/qubes/storage/lvm.py @@ -201,7 +201,7 @@ class ThinPool(qubes.storage.Pool): self.create(volume) def setup(self): - pass # TODO Should we create a non existing pool?gt + pass # TODO Should we create a non existing pool? def start(self, volume): if volume._is_snapshot: