Add XenPool.config()
This commit is contained in:
父節點
971c4ae91d
當前提交
a37fc2464a
@ -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):
|
||||
|
||||
載入中…
新增問題並參考
Block a user