O_NOATIME on Linux

This commit is contained in:
Florian Weingarten committed 2015-04-25 00:45:20 +00:00
1 parent 8be6dc0265
commit 262e5a8b4a
4 files changed
+13 -1

No files matched your search

+1 -1
View File
@@ -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