mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 07:56:33 -05:00
Exclude snapshot directory only when snapshot mode is enabled
This commit is contained in:
parent
a8a94bb950
commit
3e71e68848
4 changed files with 7 additions and 4 deletions
|
|
@ -389,8 +389,11 @@ int filter_content(tommy_list* contentlist, const char* mount_point, size_t moun
|
|||
return 0;
|
||||
}
|
||||
|
||||
int filter_snapshot(const char* sub, const char* name)
|
||||
int filter_snapshot(int enable, const char* sub, const char* name)
|
||||
{
|
||||
if (!enable)
|
||||
return 0;
|
||||
|
||||
if (*sub == 0 && pathcmp(name, SNAPSHOT_CONTAINER) == 0)
|
||||
return -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue