You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4 KiB

3 years ago
3 years ago
3 years ago
  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. /**
  16. * Find next data or hole after the specified offset
  17. */
  18. func (wfs *WFS) Lseek(cancel <-chan struct{}, in *fuse.LseekIn, out *fuse.LseekOut) fuse.Status {
  19. return fuse.ENOSYS
  20. }
  21. func (wfs *WFS) GetLk(cancel <-chan struct{}, in *fuse.LkIn, out *fuse.LkOut) (code fuse.Status) {
  22. return fuse.ENOSYS
  23. }
  24. func (wfs *WFS) SetLk(cancel <-chan struct{}, in *fuse.LkIn) (code fuse.Status) {
  25. return fuse.ENOSYS
  26. }
  27. func (wfs *WFS) SetLkw(cancel <-chan struct{}, in *fuse.LkIn) (code fuse.Status) {
  28. return fuse.ENOSYS
  29. }
  30. /**
  31. * Check file access permissions
  32. *
  33. * This will be called for the access() system call. If the
  34. * 'default_permissions' mount option is given, this method is not
  35. * called.
  36. *
  37. * This method is not called under Linux kernel versions 2.4.x
  38. */
  39. func (wfs *WFS) Access(cancel <-chan struct{}, input *fuse.AccessIn) (code fuse.Status) {
  40. return fuse.ENOSYS
  41. }