[#issue 3127] Add xattr support for Solaris

This commit is contained in:
gum3ng
2022-01-10 13:34:18 +05:30
committed by Gautam Menghani
parent fb4c5af5c4
commit dd30083c2b
6 changed files with 14 additions and 20 deletions

View File

@@ -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
}

View File

@@ -1,4 +1,5 @@
// +build darwin freebsd linux
//go:build darwin || freebsd || linux || solaris
// +build darwin freebsd linux solaris
package restic