Corinna Vinschen wrote:
On Nov 21 13:58, Christian Franke wrote:
...
In the O_DIRECT case, bytes_to_read is always 0.
Indeed. Thanks for catching this bug! I've checked in a patch.
Would you mind to give it a whirl?
Build from CVS ... now works as expected. Thanks!
Christian
On Nov 21 13:58, Christian Franke wrote:
> void
> fhandler_dev_floppy::raw_read (void *ptr, size_t& ulen)
> {
> ...
> DWORD bytes_to_read = 0;
> ...
> if (devbuf)
> { /* !O_DIRECT ... */ }
> else
> {
> _off64_t current_position = get_current_position ();
> if (current_posi
On cygwin 1.7.0-32, read() from raw devices returns 0 always if device
was opened with O_DIRECT.
Testcase:
$ dd if=/dev/sdb of=/dev/null count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.027 s, 19.0 kB/s
$ dd if=/dev/sdb of=/dev/null count=1 iflag=direct
0+0 records in
0+0 recor
3 matches
Mail list logo