Add XenPool.driver field

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-04-15 16:01:27 +02:00
parent 5f7cb41a21
commit 971c4ae91d

View File

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