weedfs_unsupported.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package mount
  2. import "github.com/hanwen/go-fuse/v2/fuse"
  3. // https://github.com/libfuse/libfuse/blob/48ae2e72b39b6a31cb2194f6f11786b7ca06aac6/include/fuse.h#L778
  4. /**
  5. * Allocates space for an open file
  6. *
  7. * This function ensures that required space is allocated for specified
  8. * file. If this function returns success then any subsequent write
  9. * request to specified range is guaranteed not to fail because of lack
  10. * of space on the file system media.
  11. */
  12. func (wfs *WFS) Fallocate(cancel <-chan struct{}, in *fuse.FallocateIn) (code fuse.Status) {
  13. return fuse.ENOSYS
  14. }
  15. func (wfs *WFS) GetLk(cancel <-chan struct{}, in *fuse.LkIn, out *fuse.LkOut) (code fuse.Status) {
  16. return fuse.ENOSYS
  17. }
  18. func (wfs *WFS) SetLk(cancel <-chan struct{}, in *fuse.LkIn) (code fuse.Status) {
  19. return fuse.ENOSYS
  20. }
  21. func (wfs *WFS) SetLkw(cancel <-chan struct{}, in *fuse.LkIn) (code fuse.Status) {
  22. return fuse.ENOSYS
  23. }
  24. /**
  25. * Check file access permissions
  26. *
  27. * This will be called for the access() system call. If the
  28. * 'default_permissions' mount option is given, this method is not
  29. * called.
  30. *
  31. * This method is not called under Linux kernel versions 2.4.x
  32. */
  33. func (wfs *WFS) Access(cancel <-chan struct{}, input *fuse.AccessIn) (code fuse.Status) {
  34. return fuse.ENOSYS
  35. }