'Creates a clone of the specified volume.'

def create_cloned_volume(self, volume, src_vref):

    new_vol_name = self.proxy._get_fss_volume_name(volume)
    src_name = self.proxy._get_fss_volume_name(src_vref)
    vol_size = volume['size']
    src_size = src_vref['size']
    fss_metadata = self.proxy.clone_volume(new_vol_name, src_name)
    self.proxy.extend_vdev(new_vol_name, src_size, vol_size)
    if volume['consistencygroup_id']:
        self.proxy._add_volume_to_consistency_group(volume['consistencygroup_id'], new_vol_name)
    volume_metadata = self._get_volume_metadata(volume)
    fss_metadata.update(volume_metadata)
    if (type(volume['metadata']) is dict):
        fss_metadata.update(volume['metadata'])
    return {'metadata': fss_metadata}
