-
Notifications
You must be signed in to change notification settings - Fork 21
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
fuseSynchronizeFile should take fh
as a parameter
#11
Comments
Thank you, please put into a PR.
…On Sun, Apr 19, 2020 at 10:06 AM matil019 ***@***.***> wrote:
Nice to meet you.
I'm studying this package by writing an "identity" filesystem whose
callbacks just calls corresponding system calls.
I've stumbled upon implementing fuseSynchronizeFile, whose type is FuseOperations
fh -> FilePath -> SyncType -> IO Errno. I believe it is supposed to
implement fsync(2), which takes a file descriptor. However I can't
implement it because it doesn't take fh as a parameter like fuseRead and
fuseWrite do.
I think fuseSynchronizeFile should have a type FuseOperations fh ->
FilePath -> fh -> SyncType -> IO Errno. I'm ready to write a PR.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#11>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB5CBPMMAEJ7VFVWAXKPL3RNMHOTANCNFSM4ML2LYPA>
.
|
Thank you. It turned out that the callbacks for directories ( So it would look like:
Added |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice to meet you.
I'm studying this package by writing an "identity" filesystem whose callbacks just calls corresponding system calls.
I've stumbled upon implementing
fuseSynchronizeFile
, whose type isFuseOperations fh -> FilePath -> SyncType -> IO Errno
. I believe it is supposed to implementfsync(2)
, which takes a file descriptor. However I can't implement it because it doesn't takefh
as a parameter likefuseRead
andfuseWrite
do.I think
fuseSynchronizeFile
should have a typeFuseOperations fh -> FilePath -> fh -> SyncType -> IO Errno
. I'm ready to write a PR.The text was updated successfully, but these errors were encountered: