'Return True for disks we don\'t want or that match regex in the config file'

def _exclude_disk(self, name, filesystem, mountpoint):

    name_empty = ((not name) or (name == 'none'))
    if (name_empty and (not self._all_partitions)):
        return True
    elif ((not name_empty) and (name in self._excluded_disks)):
        return True
    elif ((not name_empty) and self._excluded_disk_re.match(name)):
        return True
    elif self._excluded_mountpoint_re.match(mountpoint):
        return True
    elif (filesystem in self._excluded_filesystems):
        return True
    else:
        return False
