mirror of
https://github.com/restic/restic.git
synced 2025-12-04 02:31:57 +00:00
backup: Set O_NOATIME in the right place
The archiver uses FS.OpenFile, where FS is an instance of the FS interface. This is different from fs.OpenFile, which uses the OpenFile method provided by the fs package.
This commit is contained in:
committed by
greatroar
parent
7080fed7ae
commit
6b17a7110c
@@ -24,6 +24,7 @@ func (fs Local) Open(name string) (File, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
_ = setFlags(f)
|
||||
return f, nil
|
||||
}
|
||||
|
||||
@@ -37,6 +38,7 @@ func (fs Local) OpenFile(name string, flag int, perm os.FileMode) (File, error)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
_ = setFlags(f)
|
||||
return f, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user