[Bug 1798] New: Add fsync() support to sftp/sftp-server

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Jul 16 09:56:51 EST 2010


https://bugzilla.mindrot.org/show_bug.cgi?id=1798

           Summary: Add fsync() support to sftp/sftp-server
           Product: Portable OpenSSH
           Version: -current
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: sftp-server
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: imorgan at nas.nasa.gov


Created attachment 1898
  --> https://bugzilla.mindrot.org/attachment.cgi?id=1898
Initial implementation of the fsync at openssh.com extension

In some cases the delay between when a file has been transferred and
when the operating system actually flushes data to disk may provide an
opportunity for file loss or corruption. To address this, it would
be useful to call fsync(2) after writing a file.

The attached patch adds an fsync at openssh.com extension to sftp-server
which can be used to request that fsync(2) be called. In addition, a
-f option has been added to get/put and to the sftp command-line itself
to request local or remote fsync(2) of the written file.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list