/*
- * Copyright (C) 2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2008 Andre Noll <maan@tuebingen.mpg.de>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
{
if (!consider_bloom(s))
return 0;
- return bloom_test_and_insert(buf, GLOBAL_BLOOM_BUF_SIZE,
- global_bloom_filter);
+ return bloom_insert(buf, GLOBAL_BLOOM_BUF_SIZE, global_bloom_filter);
}
static int insert_user_bloom(struct stat64 *s,
{
if (!consider_bloom(s))
return 0;
- return bloom_test_and_insert(buf, USER_BLOOM_BUF_SIZE,
- user_bloom_filter);
+ return bloom_insert(buf, USER_BLOOM_BUF_SIZE, user_bloom_filter);
}
static int add_directory(char *dirname, uint64_t *dir_num, uint64_t *parent_dir_num,
check_signals();
DEBUG_LOG("----------------- %llu: %s\n", (long long unsigned)current_dir_num, dirname);
ret = adu_opendir(dirname, &dir, &cwd_fd);
- if (ret < 0) {
- if (ret != -ERRNO_TO_ERROR(EACCES))
- return ret;
- WARNING_LOG("permission denied for %s\n", dirname);
+ if (ret < 0) { /* Non-fatal, continue with next dir */
+ WARNING_LOG("skipping dir %s: %s\n", dirname,
+ adu_strerror(-ret));
return 1;
}
while ((entry = readdir(dir))) {
NOTICE_LOG("\t%u%% of bits are set\n", percent);
if (percent > 50) {
WARNING_LOG("results may be unreliable!\n");
- WARNING_LOG("consider incrasing bllom filter size\n");
+ WARNING_LOG("consider increasing bloom filter size\n");
}
}