2015-05-05 18:13:55 +00:00
|
|
|
package restic
|
|
|
|
|
2024-02-23 00:31:20 +00:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"syscall"
|
|
|
|
)
|
2015-05-05 18:13:55 +00:00
|
|
|
|
2024-02-23 00:31:20 +00:00
|
|
|
func (node Node) restoreSymlinkTimestamps(_ string, _ [2]syscall.Timespec) error {
|
2015-05-14 21:06:11 +00:00
|
|
|
return nil
|
|
|
|
}
|
2015-08-14 13:57:47 +00:00
|
|
|
|
2020-10-18 21:39:42 +00:00
|
|
|
func (s statT) atim() syscall.Timespec { return s.Atim }
|
|
|
|
func (s statT) mtim() syscall.Timespec { return s.Mtim }
|
|
|
|
func (s statT) ctim() syscall.Timespec { return s.Ctim }
|
2017-02-02 11:23:13 +00:00
|
|
|
|
2024-02-23 00:31:20 +00:00
|
|
|
// Getxattr is a no-op on openbsd.
|
2017-02-02 11:23:13 +00:00
|
|
|
func Getxattr(path, name string) ([]byte, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
2024-02-23 00:31:20 +00:00
|
|
|
// Listxattr is a no-op on openbsd.
|
2017-02-02 11:23:13 +00:00
|
|
|
func Listxattr(path string) ([]string, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
2024-01-31 19:48:03 +00:00
|
|
|
func IsListxattrPermissionError(_ error) bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2024-02-23 00:31:20 +00:00
|
|
|
// Setxattr is a no-op on openbsd.
|
2017-02-02 11:23:13 +00:00
|
|
|
func Setxattr(path, name string, data []byte) error {
|
|
|
|
return nil
|
|
|
|
}
|
2024-02-23 00:31:20 +00:00
|
|
|
|
|
|
|
// restoreGenericAttributes is no-op on openbsd.
|
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 openbsd.
|
|
|
|
func (node *Node) fillGenericAttributes(_ string, _ os.FileInfo, _ *statT) (allowExtended bool, err error) {
|
|
|
|
return true, nil
|
|
|
|
}
|