Skip to content

Commit

Permalink
[#issue 3127] Add xattr support for Solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
gautammenghani committed Jan 10, 2022
1 parent 8b6fe84 commit 4c92c22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
2 changes: 2 additions & 0 deletions doc/020_installation.rst
Expand Up @@ -295,6 +295,8 @@ supply the target OS and platform via the command-line options like this
$ go run build.go --goos linux --goarch arm --goarm 6
$ go run build.go --goos solaris --goarch amd64
The resulting binary is statically linked and does not require any
libraries.

Expand Down
16 changes: 0 additions & 16 deletions internal/restic/node_solaris.go
Expand Up @@ -9,19 +9,3 @@ func (node Node) restoreSymlinkTimestamps(path string, utimes [2]syscall.Timespe
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 retrieves extended attribute data associated with path.
func Getxattr(path, name string) ([]byte, error) {
return nil, nil
}

// Listxattr retrieves a list of names of extended attributes associated with the
// given path in the file system.
func Listxattr(path string) ([]string, error) {
return nil, nil
}

// Setxattr associates name and data together as an attribute of path.
func Setxattr(path, name string, data []byte) error {
return nil
}
3 changes: 2 additions & 1 deletion internal/restic/node_xattr.go
@@ -1,4 +1,5 @@
// +build darwin freebsd linux
//go:build darwin || freebsd || linux || solaris
// +build darwin freebsd linux solaris

package restic

Expand Down

0 comments on commit 4c92c22

Please sign in to comment.