Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2011 23:44:00 -0700 (PDT)
From:      Unga <unga888@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   How to sync a file on FreeBSD?
Message-ID:  <1311317040.38368.YahooMailClassic@web160115.mail.bf1.yahoo.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi all

How to sync a file on FreeBSD (esp. on 8.1) to disk?

I used fsync(2), but does not immediately flush to disk.

I want my writing to a file (a log file) immediately available to other users to read.

Best regards
Unga



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?1311317040.38368.YahooMailClassic>