'Matches a volume type for share file.'

def _check_volume_type(self, volume, share, file_name, extra_specs):

    qos_policy_group = (extra_specs.pop('netapp:qos_policy_group', None) if extra_specs else None)
    if qos_policy_group:
        raise exception.ManageExistingVolumeTypeMismatch(reason=_('Setting    file    qos    policy    group    is    not    supported    on    this    storage    family    and    ontap    version.'))
    volume_type = na_utils.get_volume_type_from_volume(volume)
    if (volume_type and ('qos_spec_id' in volume_type)):
        raise exception.ManageExistingVolumeTypeMismatch(reason=_('QoS    specs    are    not    supported    on    this    storage    family    and    ONTAP    version.'))
