mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 03:16:59 -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
|
|
@ -192,7 +192,7 @@ static void search_dir(struct snapraid_state* state, struct snapraid_disk* disk,
|
|||
}
|
||||
|
||||
/* exclude snapshot container even before calling lstat() */
|
||||
if (disk != 0 && filter_snapshot(sub, name) != 0) {
|
||||
if (disk != 0 && filter_snapshot(state->snapshot, sub, name) != 0) {
|
||||
msg_verbose("Excluding snapshots directory '%s'\n", path_next);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue