2024-08-26 23:03:25 +02:00
|
|
|
package fs
|
2015-05-05 20:13:55 +02:00
|
|
|
|
2024-02-22 17:31:20 -07:00
|
|
|
import (
|
|
|
|
"syscall"
|
2024-08-26 23:03:25 +02:00
|
|
|
|
|
|
|
"github.com/restic/restic/internal/restic"
|
2024-02-22 17:31:20 -07:00
|
|
|
)
|
2015-05-05 20:13:55 +02:00
|
|
|
|
2024-08-26 22:35:22 +02:00
|
|
|
func nodeRestoreSymlinkTimestamps(_ string, _ [2]syscall.Timespec) error {
|
2015-05-14 23:06:11 +02:00
|
|
|
return nil
|
|
|
|
}
|
2015-08-14 15:57:47 +02:00
|
|
|
|
2024-08-26 22:35:22 +02:00
|
|
|
// nodeRestoreExtendedAttributes is a no-op on openbsd.
|
2024-08-26 23:03:25 +02:00
|
|
|
func nodeRestoreExtendedAttributes(_ *restic.Node, _ string) error {
|
2024-05-17 14:18:20 -06:00
|
|
|
return nil
|
2017-02-02 12:23:13 +01:00
|
|
|
}
|
|
|
|
|
2024-08-26 22:35:22 +02:00
|
|
|
// nodeFillExtendedAttributes is a no-op on openbsd.
|
2024-08-26 23:03:25 +02:00
|
|
|
func nodeFillExtendedAttributes(_ *restic.Node, _ string, _ bool) error {
|
2024-05-17 14:18:20 -06:00
|
|
|
return nil
|
2017-02-02 12:23:13 +01:00
|
|
|
}
|
|
|
|
|
2024-08-26 22:35:22 +02:00
|
|
|
// nodeRestoreGenericAttributes is no-op on openbsd.
|
2024-08-26 23:03:25 +02:00
|
|
|
func nodeRestoreGenericAttributes(node *restic.Node, _ string, warn func(msg string)) error {
|
|
|
|
return restic.HandleAllUnknownGenericAttributesFound(node.GenericAttributes, warn)
|
2024-02-22 17:31:20 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// fillGenericAttributes is a no-op on openbsd.
|
2024-08-24 23:43:45 +02:00
|
|
|
func nodeFillGenericAttributes(_ *restic.Node, _ string, _ *ExtendedFileInfo) (allowExtended bool, err error) {
|
2024-02-22 17:31:20 -07:00
|
|
|
return true, nil
|
|
|
|
}
|