Add support for parallel disk scanning

This commit is contained in:
Andrea Mazzoleni 2021-11-28 15:50:38 +01:00
parent 1eb47b2ffd
commit f31395dffb
3 changed files with 178 additions and 77 deletions

View file

@ -369,6 +369,13 @@ struct snapraid_disk {
*/
thread_mutex_t fs_mutex;
int fs_mutex_enabled; /*< If the lock has to be used. */
/**
* Mutex for protecting the scan process.
*
* It's used during the scan process to protect the stampset to identity copy of files
*/
thread_mutex_t stamp_mutex;
#endif
/**