Exclude snapshot directory only when snapshot mode is enabled

This commit is contained in:
Andrea Mazzoleni 2026-08-14 09:47:12 +02:00
parent a8a94bb950
commit 3e71e68848
4 changed files with 7 additions and 4 deletions

View file

@ -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;