O_NOATIME on Linux

This commit is contained in:
Florian Weingarten
2015-04-25 00:36:54 +00:00
parent 8be6dc0265
commit 262e5a8b4a
4 changed files with 13 additions and 1 deletions

View File

@@ -11,6 +11,10 @@ import (
"github.com/restic/restic/debug"
)
func (node *Node) OpenForReading() (*os.File, error) {
return os.Open(n.path)
}
func (node *Node) fill_extra(path string, fi os.FileInfo) (err error) {
stat, ok := fi.Sys().(*syscall.Stat_t)
if !ok {