[Qt-interest] Antwort: Re: Writing file.

Markus Franke Franke.M at sebakmt.com
Wed Apr 8 13:46:32 CEST 2009


Hello,

sorry if this is a little bit off-topic here.

qt-interest-bounces at trolltech.com schrieb am 08.04.2009 13:08:44:

> Simply try closing 
> the file at the end of your function or call flush() to force the data 
to be 
> written to disk.

Does a call to fflush() really ensure the data to be written to disk??? I 
think only the stream get's flushed, but whether the data gets written to 
the disk is up to the filesystem. In those cases you also need to perform 
a call to fsync().  Please correct me if I am wrong.

Recently there was quite a lot discussion about this when some problems 
with Ext4 filesystem occured.


Mit freundlichen Grüßen / Best regards

Markus Franke
Entwicklung/ Development

SebaKMT
Hagenuk KMT Kabelmesstechnik GmbH
Röderaue 41
01471 Radeburg / Germany
Reg.Gericht (01067 Dresden) HRB 12567
Geschäftsf.: Dr. Max Iann

Phone +49 (0)35208 84 29142
Fax      +49 (0)35208 84 29249

e-mail: franke.m at sebaKMT.com
web: http//www.sebaKMT.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090408/b7a1e19c/attachment.html 


More information about the Qt-interest-old mailing list