

def commit(self, base, top, relative=False):
    'Commit on block device\n\n        For performance during live snapshot it will reduces the disk chain\n        to a single disk.\n\n        :param relative: Keep backing chain referenced using relative names\n        '
    flags = ((relative and libvirt.VIR_DOMAIN_BLOCK_COMMIT_RELATIVE) or 0)
    return self._guest._domain.blockCommit(self._disk, base, top, self.COMMIT_DEFAULT_BANDWIDTH, flags=flags)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/guest.py BlockDevice.commit/original