[Interest] QFile copy and sync/fsync
Nikos Chantziaras
realnc at gmail.com
Thu Jan 3 22:25:54 CET 2013
On 03/01/13 21:48, Thiago Macieira wrote:
> 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.
In synchronous mode? I assume that the usual "cp -a this /mnt/there" is
a good test for this. In synchronous mode, the files are written out
immediately.
More information about the Interest
mailing list