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:
parent
42d6fddcd3
commit
06f46243ec
@ -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")
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user