2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-11 13:52:31 +00:00
restic/internal/fs/node_netbsd.go

37 lines
983 B
Go
Raw Normal View History

package fs
2018-06-16 06:48:45 +00:00
import (
"syscall"
"github.com/restic/restic/internal/restic"
)
2018-06-16 06:48:45 +00:00
func nodeRestoreSymlinkTimestamps(_ string, _ [2]syscall.Timespec) error {
2018-06-16 06:48:45 +00:00
return nil
}
// nodeRestoreExtendedAttributes is a no-op on netbsd.
func nodeRestoreExtendedAttributes(_ *restic.Node, _ string) error {
return nil
2018-06-16 06:48:45 +00:00
}
// nodeFillExtendedAttributes is a no-op on netbsd.
func nodeFillExtendedAttributes(_ *restic.Node, _ string, _ bool) error {
return nil
2018-06-16 06:48:45 +00:00
}
// isListxattrPermissionError is a no-op on netbsd.
func isListxattrPermissionError(_ error) bool {
return false
}
// nodeRestoreGenericAttributes is no-op on netbsd.
func nodeRestoreGenericAttributes(node *restic.Node, _ string, warn func(msg string)) error {
return restic.HandleAllUnknownGenericAttributesFound(node.GenericAttributes, warn)
}
// nodeFillGenericAttributes is a no-op on netbsd.
func nodeFillGenericAttributes(_ *restic.Node, _ string, _ *ExtendedFileInfo) (allowExtended bool, err error) {
return true, nil
}