pread and aio_read do not fail while they should when reading from a device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello
i have tested the "non common" path of the IO.
i have made the following tests:
1.
. pull one disk out of supermicro p8sct machine.
. open a DEVICE in direct IO manner.
. send a simple pread io and asynch read io to this DISK
2.
. pull one disk out of supermicro p8sct machine.
. open a FILE  in direct IO manner.
. send a simple pread io and asynch read io to the FILE

results:
1.
 pread returnred the size of the io sent as if they was no bug.
The same applied for the async io (events->res is 4096 bytes ).

2.
pread and async io returned 0 bytes read.

dmesg reports for test 1 :
ata1: handling error/timeout
ata1: port reset, p_is 0 is 0 pis 0 cmd c017 tf 7f ss 0 se 0
ata1: status=0x50 { DriveReady SeekComplete }
sda: Current: sense key=0x0
    ASC=0x0 ASCQ=0x0
ata1: handling error/timeout
ata1: port reset, p_is 0 is 0 pis 0 cmd c017 tf 7f ss 0 se 0
ata1: status=0x50 { DriveReady SeekComplete }
sda: Current: sense key=0x0
    ASC=0x0 ASCQ=0x0

dmesg reports nothing in test 2.


xxxxx
i have attacched the test code in tar ball.

thank you.
--
Raz

Attachment: aioerr.tgz
Description: GNU Zip compressed data


[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux