Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Forward file locking requests to the sftp server #55

Closed
wants to merge 1 commit into from

Conversation

kalvdans
Copy link
Contributor

This patch intercepts flock(2) system calls and forwards them to the remote host. The SFTP protocol extension is documented at openssh/openssh-portable#66 .
Do not merge this pull request until the protocol is finalized by being merged into openssh.

@Nikratio
Copy link
Contributor

Nikratio commented Aug 6, 2017

Thanks for working on this! This looks like a great feature to have, please keep me posted on progress on the protocol.

@kalvdans
Copy link
Contributor Author

Since the protocol extensions was rejected by the sftp-server team (see openssh/openssh-portable#66), we will have to close this pull request as well.

@kalvdans kalvdans closed this Feb 10, 2018
@kalvdans
Copy link
Contributor Author

We found an issue with this change; connection to servers without the flock extensions results in ENOSYS being returned for every flock() system call. It would be preferable to use the old behavior that uses kernel locking implementation.

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

Successfully merging this pull request may close these issues.

None yet

2 participants