xattr: Disallow build on non linux platforms

Signed-off-by: Harshavardhana <fharshav@redhat.com>
This commit is contained in:
Harshavardhana 2014-10-09 15:48:30 -07:00
parent 8d1d0ba38a
commit e3d305c1ef
2 changed files with 15 additions and 0 deletions

View File

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