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.

34 lines
956 B

  1. package mount
  2. import (
  3. "github.com/hanwen/go-fuse/v2/fuse"
  4. )
  5. /**
  6. * Read data
  7. *
  8. * Read should send exactly the number of bytes requested except
  9. * on EOF or error, otherwise the rest of the data will be
  10. * substituted with zeroes. An exception to this is when the file
  11. * has been opened in 'direct_io' mode, in which case the return
  12. * value of the read system call will reflect the return value of
  13. * this operation.
  14. *
  15. * fi->fh will contain the value set by the open method, or will
  16. * be undefined if the open method didn't set any value.
  17. *
  18. * Valid replies:
  19. * fuse_reply_buf
  20. * fuse_reply_iov
  21. * fuse_reply_data
  22. * fuse_reply_err
  23. *
  24. * @param req request handle
  25. * @param ino the inode number
  26. * @param size number of bytes to read
  27. * @param off offset to read from
  28. * @param fi file information
  29. */
  30. func (wfs *WFS) Read(cancel <-chan struct{}, in *fuse.ReadIn, buf []byte) (fuse.ReadResult, fuse.Status) {
  31. return nil, fuse.ENOSYS
  32. }