[Interest] QFile::write(const QByteArray&) does not write all data?
alexander golks
alex at golks.de
Thu May 17 16:45:25 CEST 2018
Am Thu, 17 May 2018 16:02:17 +0200
schrieb alexander golks <alex at golks.de>:
> Am Fri, 11 May 2018 08:11:04 +0200
> schrieb alexander golks <alex at golks.de>:
>
> > my code was:
> > qint64 res = f.write(data);
>
> just for the curious ones:
>
> i have at least compiled 5.6.4 now, but i can not produce the error with my qt5core.
> using 5.6.3 from qt, error exists. using mine, does not exist...
>
> getting the error code directly after the f.write(data) gives me error code 183:
> ERROR_ALREADY_EXISTS
> 183 (0xB7)
> Cannot create a file when that file already exists.
>
> but i assume, that the error is not from the failing WriteFile call. or does it?
> anyone with some more ideas?
> e.g. on how to reproduce or test?
>
just rembered sysinternal utils and the process monitor. it gives me:
16:22:20,0896364 SuperCool.exe 11456 IRP_MJ_WRITE D:\temp\SuperCool.file SUCCESS Offset: 33.292.288, Length: 262.144, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O, Priority: Normal
16:22:20,0906890 SuperCool.exe 11456 FASTIO_RELEASE_FOR_CC_FLUSH D:\temp\SuperCool.file SUCCESS
16:22:20,0907198 SuperCool.exe 11456 FASTIO_WRITE D:\temp\SuperCool.file FAST IO DISALLOWED Offset: 33.554.432, Length: 33.554.432
16:22:20,0907377 SuperCool.exe 11456 IRP_MJ_WRITE D:\temp\SuperCool.file 0xC00000E8 Offset: 33.554.432, Length: 33.554.432, Priority: Normal
this is the last two successfull operations on my file,
followed by some curious "FAST IO DISALLOWED" exactly at the failing bytes size of 33.554.432,
and some other 0xC00000E8 error.
after some search i only found: https://serverfault.com/a/706177
i definitly no hardware pro, so, this is a disk driver issue?!
and only for the qt5.6.3 build?
--
/*
* panic("Foooooooood fight!");
* linux-2.2.16/drivers/scsi/aha1542.c
*/
More information about the Interest
mailing list