https://bugzilla.mindrot.org/show_bug.cgi?id=3096
Bug ID: 3096
Summary: sftp requires multiple round trips to do a write with
a fsync()
Product: Portable OpenSSH
Version: 8.1p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: sftp
Assignee: [email protected]
Reporter: [email protected]
https://libssh2.org/libssh2_sftp_fsync.html
Correct me if I am wrong, but the sftp protocol seems to require
multiple round trips to do a write followed by a fsync. Perhaps O_SYNC
is a solution here. The issue is that sftp can be over very high
latency links.
I edit source code over sftp. Very few editors do their IO on a
separate thread (vscode is an exception) and thus can be used for this.
But even if they can, the latency is horrible, because of multiple
round trips. And I *do* want fsync behavior, and while sync() calls are
notorious for being expensive, in this case the round trips are more
expensive.
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs