'Create volume from a source volume.'

def create_cloned_volume(self, volume, src_volume):

    LOG.debug('enter:    create_cloned_volume:    create    %(vol)s    from    %(src)s.', {'src': src_volume['name'], 'vol': volume['name']})
    if (src_volume['size'] != volume['size']):
        msg = _('create_cloned_volume:    Source    and    destination    size    differ.')
        LOG.error(msg)
        raise exception.VolumeDriverException(message=msg)
    self._create_and_copy_vdisk_data(src_volume['name'], src_volume['id'], volume['name'], volume['id'])
    LOG.debug('leave:    create_cloned_volume:    create    %(vol)s    from    %(src)s.', {'src': src_volume['name'], 'vol': volume['name']})
