2018-06-16 06:48:45 +00:00
|
|
|
package restic
|
|
|
|
|
2024-02-23 00:31:20 +00:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"syscall"
|
|
|
|
)
|
2018-06-16 06:48:45 +00:00
|
|
|
|
2024-02-23 00:31:20 +00:00
|
|
|
func (node Node) restoreSymlinkTimestamps(_ string, _ [2]syscall.Timespec) error {
|
2018-06-16 06:48:45 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-18 21:39:42 +00:00
|
|
|
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 }
|
2018-06-16 06:48:45 +00:00
|
|
|
|
2024-05-17 20:18:20 +00:00
|
|
|
// restoreExtendedAttributes is a no-op on netbsd.
|
|
|
|
func (node Node) restoreExtendedAttributes(_ string) error {
|
|
|
|
return nil
|
2018-06-16 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
2024-05-17 20:18:20 +00:00
|
|
|
// fillExtendedAttributes is a no-op on netbsd.
|
|
|
|
func (node *Node) fillExtendedAttributes(_ string, _ bool) error {
|
|
|
|
return nil
|
2018-06-16 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
2024-05-17 20:18:20 +00:00
|
|
|
// IsListxattrPermissionError is a no-op on netbsd.
|
2024-01-31 19:48:03 +00:00
|
|
|
func IsListxattrPermissionError(_ error) bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2024-02-23 00:31:20 +00:00
|
|
|
// restoreGenericAttributes is no-op on netbsd.
|
2024-02-23 00:52:26 +00:00
|
|
|
func (node *Node) restoreGenericAttributes(_ string, warn func(msg string)) error {
|
|
|
|
return node.handleAllUnknownGenericAttributesFound(warn)
|
2024-02-23 00:31:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// fillGenericAttributes is a no-op on netbsd.
|
|
|
|
func (node *Node) fillGenericAttributes(_ string, _ os.FileInfo, _ *statT) (allowExtended bool, err error) {
|
|
|
|
return true, nil
|
|
|
|
}
|