mirror of
https://github.com/restic/restic.git
synced 2026-11-24 15:14:55 +00:00
O_NOATIME on Linux
This commit is contained in:
1 parent
8be6dc0265
commit
262e5a8b4a
4 files changed
+13
-1
No files matched your search
+1
-1
@@ -169,7 +169,7 @@ func (arch *Archiver) SaveTreeJSON(item interface{}) (Blob, error) {
|
||||
// SaveFile stores the content of the file on the backend as a Blob by calling
|
||||
// Save for each chunk.
|
||||
func (arch *Archiver) SaveFile(p *Progress, node *Node) (Blobs, error) {
|
||||
file, err := os.Open(node.path)
|
||||
file, err := node.OpenForReading()
|
||||
defer file.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user