From 971c4ae91df9f82a08bf2db113b15b5e0024760c Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Fri, 15 Apr 2016 16:01:27 +0200 Subject: [PATCH] Add XenPool.driver field --- qubes/storage/xen.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qubes/storage/xen.py b/qubes/storage/xen.py index 020b3270..01463b39 100644 --- a/qubes/storage/xen.py +++ b/qubes/storage/xen.py @@ -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