Add XenPool.driver field
This commit is contained in:
parent
5f7cb41a21
commit
971c4ae91d
@ -38,6 +38,7 @@ BLKSIZE = 512
|
||||
|
||||
class XenPool(Pool):
|
||||
''' File based 'original' disk implementation '''
|
||||
driver = 'xen'
|
||||
|
||||
def __init__(self, name=None, dir_path=None):
|
||||
super(XenPool, self).__init__(name=name)
|
||||
@ -77,6 +78,14 @@ class XenPool(Pool):
|
||||
|
||||
return volume
|
||||
|
||||
@property
|
||||
def config(self):
|
||||
return {
|
||||
'name': self.name,
|
||||
'dir_path': self.dir_path,
|
||||
'driver': XenPool.driver,
|
||||
}
|
||||
|
||||
def resize(self, volume, size):
|
||||
''' Expands volume, throws
|
||||
:py:class:`qubst.storage.StoragePoolException` if given size is
|
||||
|
Loading…
Reference in New Issue
Block a user