xattr: Disallow build on non linux platforms
Signed-off-by: Harshavardhana <fharshav@redhat.com>
This commit is contained in:
parent
8d1d0ba38a
commit
e3d305c1ef
|
@ -0,0 +1,15 @@
|
||||||
|
// +build !linux
|
||||||
|
|
||||||
|
package xattr
|
||||||
|
|
||||||
|
func Listxattr(path string) ([]string, error) {
|
||||||
|
return nil, ErrNotSupportedPlatform
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getxattr(path, attr string) (string, error) {
|
||||||
|
return "", ErrNotSupportedPlatform
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setxattr(path, xattr, value string) error {
|
||||||
|
return ErrNotSupportedPlatform
|
||||||
|
}
|
Loading…
Reference in New Issue