mirror of
https://github.com/restic/restic.git
synced 2026-11-06 07:19:21 +00:00
restic: extract Node filesystem code to fs package
This commit is contained in:
1 parent
a2e54eac64
commit
b9b32e5647
26 files changed
+783
-752
No files matched your search
@@ -0,0 +1,18 @@
|
||||
//go:build freebsd
|
||||
// +build freebsd
|
||||
|
||||
package fs
|
||||
|
||||
import "syscall"
|
||||
|
||||
func nodeRestoreSymlinkTimestamps(path string, utimes [2]syscall.Timespec) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func mknod(path string, mode uint32, dev uint64) (err error) {
|
||||
return syscall.Mknod(path, mode, dev)
|
||||
}
|
||||
|
||||
func (s statT) atim() syscall.Timespec { return s.Atimespec }
|
||||
func (s statT) mtim() syscall.Timespec { return s.Mtimespec }
|
||||
func (s statT) ctim() syscall.Timespec { return s.Ctimespec }
|
||||
Reference in new issue
Block a user