'Recover volumes on failback.
On failback, attempt to recover non RE(replication enabled)
volumes from primary array.
:param volume: the volume object
:param extra_specs: the extra specifications
:returns: volume_update'

def recover_volumes_on_failback(self, volume, extra_specs):

    volume_update = {'volume_id': volume.id}
    device_id = self._find_device_on_array(volume, extra_specs)
    if (not device_id):
        volume_update['updates'] = {'status': 'error'}
    else:
        try:
            maskingview = self.get_masking_views_from_volume(extra_specs[utils.ARRAY], device_id, '')
        except Exception:
            maskingview = None
            LOG.debug('Unable    to    determine    if    volume    is    in    masking    view.')
        if (not maskingview):
            volume_update['updates'] = {'status': 'available'}
        else:
            volume_update['updates'] = {'status': 'in-use'}
    return volume_update
