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