[Interest] QFile copy and sync/fsync

Thiago Macieira thiago.macieira at intel.com
Fri Jan 4 14:58:44 CET 2013


On sexta-feira, 4 de janeiro de 2013 08.00.14, Duane wrote:
> What I don't understand is that if I mount the USB stick with sync, and 
> I have a for loop that copies N files, after the for loop finishes, 
> there is a long delay.  I can see from the led on the usb stick that 
> this is when the files are being written.  Is this something that the OS 
> (in this case Tiny Core Linux) decides to do or is there some way to 
> change this behavior in Qt?

It's the OS. It buffers the writes for later. Nothing that Qt can do about it.

-- 
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/20130104/e6b2775e/attachment.sig>


More information about the Interest mailing list