forked from TrueCloudLab/restic
c45f8ee075
name old time/op new time/op delta NodeFillUser-8 1.81µs ± 9% 1.50µs ± 5% -17.07% (p=0.000 n=19+20) NodeFromFileInfo-8 1.76µs ± 4% 1.49µs ± 6% -15.63% (p=0.000 n=20+19) name old alloc/op new alloc/op delta NodeFillUser-8 496B ± 0% 352B ± 0% -29.03% (p=0.000 n=20+20) NodeFromFileInfo-8 496B ± 0% 352B ± 0% -29.03% (p=0.000 n=20+20) name old allocs/op new allocs/op delta NodeFillUser-8 3.00 ± 0% 2.00 ± 0% -33.33% (p=0.000 n=20+20) NodeFromFileInfo-8 3.00 ± 0% 2.00 ± 0% -33.33% (p=0.000 n=20+20)
17 lines
403 B
Go
17 lines
403 B
Go
// +build freebsd
|
|
|
|
package restic
|
|
|
|
import "syscall"
|
|
|
|
func (node Node) restoreSymlinkTimestamps(path string, utimes [2]syscall.Timespec) error {
|
|
return nil
|
|
}
|
|
|
|
func (node Node) device() uint64 {
|
|
return node.Device
|
|
}
|
|
|
|
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 }
|