2005-03-03 02:00:29

by Damian Kolkowski

[permalink] [raw]
Subject: [BUG] - SATA / ioctl(). (HDIO_GET_IDENTITY failed...)

Hi,

Is there any patch to correct libata working with ioctl()?

For example:

.~. # hdparm -t /dev/hda /dev/sda
/dev/hda:
Timing buffered disk reads: 174 MB in 3.03 seconds = 57.36 MB/sec
/dev/sda:
Timing buffered disk reads: 152 MB in 3.03 seconds = 50.11 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
.~. #

I can attach addition: dmesg, kernel.config, lspci, etc...

take care.

--
### Damian Ko?kowski (dEiMoS) ## http://kolkowski.no-ip.org/ ###
# echo teb.cv-ba.vxfjbxybx.anvznq | rot13 | rev | sed s/\\./@/ #


2005-03-03 02:20:46

by Damian Kolkowski

[permalink] [raw]
Subject: Re: [BUG] - SATA / ioctl(). (HDIO_GET_IDENTITY failed...)

* Damian Ko?kowski <[email protected]> [2005-03-03 03:07]:
> Is there any patch to correct libata working with ioctl()?

Probably hdparm is not the right software for this test, so sorry for bother
;-)

--
### Damian Ko?kowski (dEiMoS) ## http://kolkowski.no-ip.org/ ###
# echo teb.cv-ba.vxfjbxybx.anvznq | rot13 | rev | sed s/\\./@/ #

2005-03-03 02:34:45

by Jeff Garzik

[permalink] [raw]
Subject: Re: [BUG] - SATA / ioctl(). (HDIO_GET_IDENTITY failed...)

Damian Kolkowski wrote:
> Hi,
>
> Is there any patch to correct libata working with ioctl()?

libata works fine with ioctl(2).


> For example:
>
> .~. # hdparm -t /dev/hda /dev/sda
> /dev/hda:
> Timing buffered disk reads: 174 MB in 3.03 seconds = 57.36 MB/sec
> /dev/sda:
> Timing buffered disk reads: 152 MB in 3.03 seconds = 50.11 MB/sec
> HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
> .~. #
>
> I can attach addition: dmesg, kernel.config, lspci, etc...

Arbitrary command execution is only supported in libata-dev tree for now.

Jeff