[libav-bugs] [Bug 526] New: Add API for syncing files on disk

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Fri Jun 7 17:19:50 CEST 2013


https://bugzilla.libav.org/show_bug.cgi?id=526

           Summary: Add API for syncing files on disk
           Product: Libav
           Version: 9
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: libavformat
        AssignedTo: bugzilla at libav.org
        ReportedBy: andysem at mail.ru


Created attachment 419
  --> https://bugzilla.libav.org/attachment.cgi?id=419
The patch adds syncing support

In our application, we write media files to a shared samba folder. At the end
of the file we need to ensure the file is written completely to the remote
filesystem, hence we need to fsync the file before closing it. However,
libavformat doesn't expose any API to do that.

The attached patch adds the avio_sync() function that flushes the internal
buffers and invokes fsync on the file. This function is a no-op on other types
of resources (such as network protocols).

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list