[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: File corruption with KSaveFile on full disk
From: Thiago Macieira <thiago () kde ! org>
Date: 2009-01-18 9:06:10
Message-ID: 200901181006.10831.thiago () kde ! org
[Download RAW message or body]
Michael Leupold wrote:
>I seem to have to check the return value and use waitForBytesWritten()
> unless I'm using unbuffered output as QIODevice::write() might (will?)
> return the number of bytes I tried to write even if the disk is full.
> That's at least what a simple test suggests.
Use an unbuffered QFile and check the return value of write().
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic