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.
This commit is contained in:
Marek Marczykowski-Górecki 2016-08-18 11:41:02 +02:00
parent 42d6fddcd3
commit 06f46243ec
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 8 additions and 1 deletions

View File

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

View File

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