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.

35 lines
996 B

  1. package mount
  2. import (
  3. "github.com/hanwen/go-fuse/v2/fuse"
  4. )
  5. /**
  6. * Write data
  7. *
  8. * Write should return exactly the number of bytes requested
  9. * except on error. An exception to this is when the file has
  10. * been opened in 'direct_io' mode, in which case the return value
  11. * of the write system call will reflect the return value of this
  12. * operation.
  13. *
  14. * Unless FUSE_CAP_HANDLE_KILLPRIV is disabled, this method is
  15. * expected to reset the setuid and setgid bits.
  16. *
  17. * fi->fh will contain the value set by the open method, or will
  18. * be undefined if the open method didn't set any value.
  19. *
  20. * Valid replies:
  21. * fuse_reply_write
  22. * fuse_reply_err
  23. *
  24. * @param req request handle
  25. * @param ino the inode number
  26. * @param buf data to write
  27. * @param size number of bytes to write
  28. * @param off offset to write to
  29. * @param fi file information
  30. */
  31. func (wfs *WFS) Write(cancel <-chan struct{}, in *fuse.WriteIn, data []byte) (written uint32, code fuse.Status) {
  32. return 0, fuse.ENOSYS
  33. }