Logo
Explore Help
Sign In
TheArchive/restic
1
0
Fork 0
You've already forked restic
mirror of https://github.com/restic/restic.git synced 2025-05-09 02:46:56 +00:00
Code Issues Packages Projects Releases Wiki Activity
restic/internal/fs/setflags_other.go

13 lines
206 B
Go
Raw Normal View History

Set O_NOATIME flag on Linux Citing Kerrisk, The Linux Programming Interface: The O_NOATIME flag is intended for use by indexing and backup programs. Its use can significantly reduce the amount of disk activity, because repeated disk seeks back and forth across the disk are not required to read the contents of a file and to update the last access time in the file’s i-node[.] restic used to do this, but the functionality was removed along with the fadvise call in #670.
2020-07-01 14:35:49 +02:00
//go:build !linux
// +build !linux
package fs
import "os"
// OS-specific replacements of setFlags can set file status flags
// that improve I/O performance.
func setFlags(*os.File) error {
return nil
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.6 Page: 147ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API