'Creates a clone of the specified volume.'

@pure_driver_debug_trace
def create_cloned_volume(self, volume, src_vref):

    vol_name = self._get_vol_name(volume)
    src_name = self._get_vol_name(src_vref)
    current_array = self._get_current_array()
    current_array.copy_volume(src_name, vol_name)
    self._extend_if_needed(current_array, vol_name, src_vref['size'], volume['size'])
    self._add_to_group_if_needed(volume, vol_name)
    self._enable_replication_if_needed(current_array, volume)
