Coder Social home page Coder Social logo

Comments (4)

mkm85 avatar mkm85 commented on May 27, 2024

What version is this behavior observed on?

On current master we do an fclose before the rename, we believe that should be enough to make the file written to the disk.
https://github.com/nabto/unabto/blob/master/src/modules/fingerprint_acl/fp_acl_file.c line 139 - 162

from unabto.

dpkds avatar dpkds commented on May 27, 2024

From fclose man:
Note that fclose() flushes only the user-space buffers provided by the C library. To ensure that the data is physically stored on disk the kernel buffers must be flushed too, for example, with sync(2) or fsync(2).

In my case I'm running on a ubifs where it could take very long for the data to reach the physical storage. However it could happen on any file system not mounted specifically with sync.

It's observed with version:
unabto_tunnel -V
Version: 3.0.15
... but the save functionality has not changed since.

from unabto.

mkm85 avatar mkm85 commented on May 27, 2024

we will add fsync

from unabto.

mkm85 avatar mkm85 commented on May 27, 2024

fsync added to master

from unabto.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.