mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Uses O_NOATIME if possible.
This commit is contained in:
parent
8f4e5e88a3
commit
db6ff47062
6 changed files with 22 additions and 9 deletions
2
parity.c
2
parity.c
|
|
@ -222,7 +222,7 @@ int parity_open(struct snapraid_parity* parity, const char* path)
|
|||
pathcpy(parity->path, sizeof(parity->path), path);
|
||||
|
||||
/* opening in sequential mode in Windows */
|
||||
parity->f = open(parity->path, O_RDONLY | O_BINARY | O_SEQUENTIAL);
|
||||
parity->f = open(parity->path, O_RDONLY | O_BINARY | O_SEQUENTIAL | O_NOATIME);
|
||||
if (parity->f == -1) {
|
||||
fprintf(stderr, "Error opening parity file '%s'. %s.\n", parity->path, strerror(errno));
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue