basicfs_xattr_unsupported.go 718 B

12345678910111213141516171819202122
  1. // Copyright (C) 2022 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at https://mozilla.org/MPL/2.0/.
  6. //go:build windows || dragonfly || illumos || solaris || openbsd
  7. // +build windows dragonfly illumos solaris openbsd
  8. package fs
  9. import (
  10. "github.com/syncthing/syncthing/lib/protocol"
  11. )
  12. func (f *BasicFilesystem) GetXattr(path string, xattrFilter XattrFilter) ([]protocol.Xattr, error) {
  13. return nil, ErrXattrsNotSupported
  14. }
  15. func (f *BasicFilesystem) SetXattr(path string, xattrs []protocol.Xattr, xattrFilter XattrFilter) error {
  16. return ErrXattrsNotSupported
  17. }