mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Add fsync-store-paths option
- Add recursiveSync function to flush a directory tree to disk - Add AutoCloseFD::startFsync to initiate an asynchronous fsync without waiting for the result - Initiate an asynchronous fsync while extracting NAR files - Implement the fsync-store-paths option in LocalStore
This commit is contained in:
parent
1437582ccd
commit
5987fb7459
7 changed files with 102 additions and 10 deletions
|
@ -95,7 +95,7 @@ struct RetrieveRegularNARSink : ParseSink
|
|||
|
||||
void parseDump(ParseSink & sink, Source & source);
|
||||
|
||||
void restorePath(const Path & path, Source & source);
|
||||
void restorePath(const Path & path, Source & source, bool startFsync = false);
|
||||
|
||||
/* Read a NAR from 'source' and write it to 'sink'. */
|
||||
void copyNAR(Source & source, Sink & sink);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue