'Create a clone of the specified volume.'

def create_cloned_volume(self, volume, src_vref):

    zfssa_snapshot = {'volume_name': src_vref['name'], 'name': ('tmp-snapshot-%s' % volume['id'])}
    self.create_snapshot(zfssa_snapshot)
    try:
        self.create_volume_from_snapshot(volume, zfssa_snapshot)
    except exception.VolumeBackendAPIException:
        LOG.error('Clone    Volume:    %(volume)s    failed    from    source    volume:    %(src_vref)s', {'volume': volume['name'], 'src_vref': src_vref['name']})
        self.delete_snapshot(zfssa_snapshot)
