Re: [PATCH] libata: shelved ioctl-get-identity patch

Jeff Garzik
2005-06-06T16:24:39Z

Mark Lord wrote:
> For now, "hdparm -I" works just fine using HDIO_DRIVE_CMD,
> but if somebody could show me how to use ATA PASSTHRU,
> then I'll port it over to that.

Use the SG_IO ioctl to send ATA passthru CDBs. Passthru CDBs are
defined in the T10 "SAT" specification.

blktool should have example code ;-)

Jeff