S.M.A.R.T.

Hello,
i try to port the smartmontools (http://smartmontools.sourceforge.net)
to QNX 6.x.
has anybody an idea how i can set ATA-Command to eide Interface with
parallel runing devb-eide ? anybody know if devb-eide has an devctl or
ioctl for push ATA-Commands ?
like in freebsd


iocmd.u.request.u.ata.command=ATA_IDENTIFY_DEVICE;
iocmd.u.request.flags=ATA_CMD_READ;
iocmd.u.request.data=buff;
iocmd.u.request.count=512;

if ((retval=ioctl(con->atacommand, IOCATA, &iocmd))) {
perror("Failed command: ");
return -1;

thanks for any hints and
greetings from germanys biggest island Rügen

You probably could use PASSTHRU devctl, but it is undocumented. Check the
header files. And check QNX patches for cdrecord if you can find the
sources - I think it was done using that method.

“Jörg Hering” <jhering.ruegen@gmx.de> wrote in message
news:dvh6uf$g9h$1@inn.qnx.com

Hello,
i try to port the smartmontools (> http://smartmontools.sourceforge.net> )
to QNX 6.x.
has anybody an idea how i can set ATA-Command to eide Interface with
parallel runing devb-eide ? anybody know if devb-eide has an devctl or
ioctl for push ATA-Commands ?
like in freebsd


iocmd.u.request.u.ata.command=ATA_IDENTIFY_DEVICE;
iocmd.u.request.flags=ATA_CMD_READ;
iocmd.u.request.data=buff;
iocmd.u.request.count=512;

if ((retval=ioctl(con->atacommand, IOCATA, &iocmd))) {
perror("Failed command: ");
return -1;

thanks for any hints and
greetings from germanys biggest island Rügen

J?rg Hering <jhering.ruegen@gmx.de> wrote:

Hello,
i try to port the smartmontools (> http://smartmontools.sourceforge.net> )
to QNX 6.x.
has anybody an idea how i can set ATA-Command to eide Interface with
parallel runing devb-eide ? anybody know if devb-eide has an devctl or
ioctl for push ATA-Commands ?
like in freebsd

Sorry, the eide driver doesn’t provide an interface for raw ATA commands.

Kevin Chiles schrieb:

J?rg Hering <> jhering.ruegen@gmx.de> > wrote:
Hello,
i try to port the smartmontools (> http://smartmontools.sourceforge.net> )
to QNX 6.x.
has anybody an idea how i can set ATA-Command to eide Interface with
parallel runing devb-eide ? anybody know if devb-eide has an devctl or
ioctl for push ATA-Commands ?
like in freebsd

Sorry, the eide driver doesn’t provide an interface for raw ATA commands.
what is possible ?

i know the devb-eide can enable the SMART Interface,
identify the Drive Information and so on via ATA-Interface …

#define CMD_SMART 0xB0
#define CMD_IDENTIFY_DEVICE 0xEC

i know its possible to write a own interface, but that is very
dangerus in conjuntion with devb-eide.

any ideas ???

\


Joerg Hering
Chief Developer VDR
e-mail: jhering@avecs-bergen.de GPG Key-ID:0x71DDB82F
mobile: jhering.ruegen@gmx.de GPG Key-ID:0x7F25BEF1

AVECS Bergen GmbH
development department
Billrothstraße 11a
D-18528 Bergen auf Rügen

Tel.: +49 3838 2119101
Fax: +49 3838 2119105
Mobile: +49 172 3896974
Skype: j.hering
URL: http://www.avecs-bergen.de