mirror of
https://github.com/octoleo/restic.git
synced 2024-12-25 12:09:59 +00:00
eeb1aa5388
Report warnings to terminal when unrecognized generic attributes are found in the repository.
40 lines
1000 B
Go
40 lines
1000 B
Go
package restic
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
func (node Node) restoreSymlinkTimestamps(_ string, _ [2]syscall.Timespec) error {
|
|
return nil
|
|
}
|
|
|
|
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 }
|
|
|
|
// Getxattr is a no-op on openbsd.
|
|
func Getxattr(path, name string) ([]byte, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
// Listxattr is a no-op on openbsd.
|
|
func Listxattr(path string) ([]string, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
// Setxattr is a no-op on openbsd.
|
|
func Setxattr(path, name string, data []byte) error {
|
|
return nil
|
|
}
|
|
|
|
// restoreGenericAttributes is no-op on openbsd.
|
|
func (node *Node) restoreGenericAttributes(_ string, warn func(msg string)) error {
|
|
return node.handleAllUnknownGenericAttributesFound(warn)
|
|
}
|
|
|
|
// fillGenericAttributes is a no-op on openbsd.
|
|
func (node *Node) fillGenericAttributes(_ string, _ os.FileInfo, _ *statT) (allowExtended bool, err error) {
|
|
return true, nil
|
|
}
|