Adds a the new -e, --filter-error option for fix and check.

This commit is contained in:
Andrea Mazzoleni 2013-08-18 19:24:55 +02:00
parent 746c829bec
commit 746901d0be
6 changed files with 75 additions and 12 deletions

6
elem.h
View file

@ -363,6 +363,12 @@ int filter_path(tommy_list* filterlist, const char* disk, const char* sub);
*/
int filter_existence(int filter_missing, const char* dir, const char* sub);
/**
* Filter a file if bad.
* Return !=0 if the file is correct and it should be excluded.
*/
int filter_correctness(int filter_error, tommy_arrayof* infoarr, struct snapraid_file* file);
/**
* Filters a dir using a list of filters.
* For each element of the path all the filters are applied, until the first one that matches.