https://bugs.freedesktop.org/show_bug.cgi?id=40607
Michael Meeks <michael.me...@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |EasyHack,DifficultyInterest | |ing,SkillCpp Summary|Previously-saved |EasyHack: call fsync when |LibreOffice document lost |we can when writing |by power outage (became 0 |documents to certain linux |bytes long) - LibreOffice |file-systems |should call fsync | --- Comment #15 from Michael Meeks <michael.me...@novell.com> 2012-01-10 02:26:43 PST --- Hi Tristan, > I was actually looking into that recently as part of another project > and it's pretty easy. Basically ... Sounds cool :-) any chance you can knock up a nice fragment of tested C code that would do this for Linux under MPL/LGPLv3+ that we can couple up ? We'd want to add that to sal/osl/unx/file.cxx (osl_syncFile) inside some #ifdef LINUX guard I guess. Then we'd want to add an osl_syncFile to the end of our export logic, which is slightly more involved; I suspect ucb/source/ucp/file/filstr.cxx /closeOutput/ - anyhow - first steps first. Turning this into an intermediate / easy hack with the above pointers :-) -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs