diff --git a/qubes/storage/xen.py b/qubes/storage/xen.py index 01463b39..c1b0f803 100644 --- a/qubes/storage/xen.py +++ b/qubes/storage/xen.py @@ -248,6 +248,13 @@ class SizeMixIn(XenVolume): ''' Returns the actualy used space ''' return get_disk_usage(self.vid) + @property + def config(self): + ''' return config data for serialization to qubes.xml ''' + return {'name': self.name, + 'pool': self.pool, + 'size': str(self.size), + 'volume_type': self.volume_type} class ReadWriteFile(SizeMixIn):