-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Apr 02, 2007 at 11:00:10AM -0400, Russell wrote: > Has anyone played around with the libata module before? I have a > SATA drive hooked to a Silicon Image 3124 card and I can access the > drive through the normal shell commands. I can fdisk, mkfs, mount > and write/read the drive. So I know that all the pieces are in place > from an electrical and OS/driver standpoint. > > Now I'm trying to write a program to send commands to the disk using > the libata driver that is already installed and running. Does anyone > know what function within libata.h or libata-core.c to use to probe > the driver and find out what devices are registerred with it? I've > tried a couple but I keep crashing my system. There are a couple of old IDE ioctl()s ported over to libata, like HDIO_DRIVE_CMD. The most powerful HDIO_DRIVE_TASKFILE is not implemented, though. You could try SG_IO with ATA_16 to pass commands to the drive. I haven't played with that yet, if you need more information you need to ask on the linux-ide mailing list. Erik - -- They're all fools. Don't worry. Darwin may be slow, but he'll eventually get them. -- Matthew Lammers in alt.sysadmin.recovery -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGEjGb/PlVHJtIto0RAjIWAJ9Z51hikbaTuzYahvmTLmdkkyBxIACdHznJ +bpqp51Fd3LxXpw6ZZbE0gk= =/aez -----END PGP SIGNATURE----- -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ