def add_disks(self, *dev_disks):
"""
Add disk by dev name
.. warning::
Adding a disk during a backup is not recommended, as the current
disks list could be inaccurate. It will pull the informations
about the current disks attached to the domain, but the backup
process creates temporary external snapshots, changing the current
disks attached. This should not be an issue when the backingStore
property will be correctly handled, but for now it is.
:param dev_disk: dev name of the new disk to backup. If not indicated,
will add all disks.
"""
dom_all_disks = self._get_self_domain_disks()
if not dev_disks:
self.disks = dom_all_disks
for dev in dev_disks:
if dev in self.disks:
continue
self.disks[dev] = dom_all_disks[dev]
评论列表
文章目录