[Interest] QFile copy and sync/fsync

Thiago Macieira thiago.macieira at intel.com
Thu Jan 3 20:48:39 CET 2013


On quinta-feira, 3 de janeiro de 2013 21.45.39, Nikos Chantziaras wrote:
> Have you tried to open the files in QIODevice::Unbuffered mode?  If you 
> do that, then the data should be written out immediately when the 
> filesystem is mounted synchronously.

That has nothing to do with it. Unbuffered mode means that QFile will not buffer 
(and will not use buffered stdio either). Instead, it will use directly the 
low-level POSIX API like open(2) and write(2).

The OS may still buffer.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130103/cfa192b3/attachment.sig>


More information about the Interest mailing list