mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-02 04:46:46 -05:00
Document why automatic copy search runs before snapshot selection
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
This commit is contained in:
parent
e7135d101b
commit
cd8b331a30
1 changed files with 6 additions and 1 deletions
|
|
@ -1777,7 +1777,12 @@ int snapraid_main(int argc, char* argv[])
|
||||||
if (import_content != 0)
|
if (import_content != 0)
|
||||||
state_import(&state, import_content);
|
state_import(&state, import_content);
|
||||||
|
|
||||||
/* import from all the array */
|
/*
|
||||||
|
* Search the live array before switching reference disks to snapshots.
|
||||||
|
* The search is intended to find files copied or moved since the last sync;
|
||||||
|
* snapshots are instead used later for the historical state matching parity.
|
||||||
|
* Keep this before state_snapshot_write(), or recent live copies may be missed.
|
||||||
|
*/
|
||||||
if (!state.opt.force_nocopy)
|
if (!state.opt.force_nocopy)
|
||||||
state_search_array(&state);
|
state_search_array(&state);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue