Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add file/directory handle parameters to FuseOperation #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

matil019
Copy link

Resolves #11

This PR adds a file handle parameter and directory handle parameters to FuseOperation. This is a API-breaking change.

Summary

  • Added parameter fh to fuseSynchronizeFile
  • Added type variable dh to FuseOperations
  • Added return value dh to fuseOpenDirectory
  • Added parameter dh to fuseReadDirectory, fuseReleaseDirectory and fuseSynchronizeDirectory

dh would correspond to DirStream, which is a Haskell representation of DIR *.

`dh` is a directory handle which corresponds to `DIR *` in native
filesystems.
A `StablePtr dh` is poked into `fuse_file_info.fh`.
@plredmond
Copy link

I've integrated this branch into my project and it works great. There doesn't seem to be a function in the posix package which can be used to implement fuseDirectorySyncronise, however, but that's not important for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fuseSynchronizeFile should take fh as a parameter
2 participants