mirror of
https://github.com/restic/restic.git
synced 2026-03-27 00:12:43 +00:00
O_NOATIME on Linux
This commit is contained in:
@@ -11,6 +11,10 @@ import (
|
||||
"github.com/restic/restic/debug"
|
||||
)
|
||||
|
||||
func (node *Node) OpenForReading() (*os.File, error) {
|
||||
return os.OpenFile(node.path, os.O_RDONLY|syscall.O_NOATIME, 0)
|
||||
}
|
||||
|
||||
func (node *Node) fill_extra(path string, fi os.FileInfo) error {
|
||||
stat, ok := fi.Sys().(*syscall.Stat_t)
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user