-
Notifications
You must be signed in to change notification settings - Fork 106
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
Linux and Posix file locking support. #108
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR!
Could you add a test please, too, and rebase this PR on top of the current branch?
OpContext: fuseops.OpContext{Pid: inMsg.Header().Pid}, | ||
Parent: fuseops.InodeID(hdr.Nodeid), | ||
Name: string(buf[:n-1]), | ||
OpContext: fuseops.OpContext{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of repeating this struct initialization over and over again, could you factor it out into a opContext(hdr *fusekernel.InHeader) OpContext
helper function?
// macFuse 4.2.1 workaround: the kernel implementation is buggy. | ||
// It call OpRename with the data type of OpRename2. The workaround consists | ||
// in skipping the first 8 bytes of names (which are zeroes). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove empty line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workaround was probably already merged in my PR #107 %)
@@ -113,6 +113,10 @@ type MountConfig struct { | |||
// syscall doesn't return until the file system returns. | |||
DisableWritebackCaching bool | |||
|
|||
// Enable Posix file locking | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty line
The PR includes: