mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-21 07:26:29 -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
|
|
@ -1437,7 +1437,7 @@ static int scan_sub(struct snapraid_scan* scan, int level, int is_diff, char* pa
|
|||
}
|
||||
|
||||
/* exclude snapshot container even before calling lstat() */
|
||||
if (filter_snapshot(sub_next, name) != 0) {
|
||||
if (filter_snapshot(state->snapshot, sub_next, name) != 0) {
|
||||
msg_verbose("Excluding snapshots directory '%s'\n", path_next);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue