Automatically exclude the snapshot .snapraid directory and content files

This commit is contained in:
Andrea Mazzoleni 2026-05-11 23:24:36 +02:00
parent 37ff42a1c2
commit ea470341aa
10 changed files with 111 additions and 22 deletions

View file

@ -632,7 +632,13 @@ int filter_emptydir(tommy_list* filterlist, struct snapraid_filter** reason, con
* Filter a path if it's a content file.
* Return !=0 if should be excluded.
*/
int filter_content(tommy_list* contentlist, const char* path);
int filter_content(tommy_list* contentlist, const char* mount_point, size_t mount_point_len, const char* sub, size_t sub_len, const char* name);
/**
* Filter a path that is in a snapshot
* Return !=0 if should be excluded.
*/
int filter_snapshot(const char* sub, const char* name);
/**
* Check if the specified hash is invalid.