From owner-freebsd-hackers Mon Nov 18 5:30:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 190CB37B401 for ; Mon, 18 Nov 2002 05:30:58 -0800 (PST) Received: from mailout5-0.nyroc.rr.com (mailout5-0.nyroc.rr.com [24.92.226.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F62F43E77 for ; Mon, 18 Nov 2002 05:30:57 -0800 (PST) (envelope-from martines@frontiernet.net) Received: from domain.crafts4life.com (roc-66-66-69-232.rochester.rr.com [66.66.69.232]) by mailout5-0.nyroc.rr.com (8.11.6/RoadRunner 1.20) with ESMTP id gAIDUsF21976 for ; Mon, 18 Nov 2002 08:30:55 -0500 (EST) Received: from localhost.crafts4life.com (localhost.crafts4life.com [127.0.0.1]) by domain.crafts4life.com (8.12.6/8.12.6) with ESMTP id gAIDRgXO096583 for ; Mon, 18 Nov 2002 08:27:42 -0500 (EST) (envelope-from martines@frontiernet.net) Received: from firestorm.crafts4life.com by domain.crafts4life.com (AvMailGate-2.0.1.7) id 96578-3C861F25; Mon, 18 Nov 2002 08:27:42 -0500 Subject: ATAPI vs ATA disk From: Eduard Martinescu To: freebsd-hackers@FreeBSD.ORG Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8-3mdk Date: 18 Nov 2002 08:30:55 -0500 Message-Id: <1037626255.2801.20.camel@firestorm.crafts4life.com> Mime-Version: 1.0 X-AntiVirus: checked by AntiVir MailGate (version: 2.0.1.7; AVE: 6.16.0.0; VDF: 6.16.0.17; host: domain.crafts4life.com) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am trying to port the 'smartmontools' package from sourceforge.net to FreeBSD. However, I am running into some issues. I need to be able to send SMART commands (and read responses) to ATA disk drives. At first glance, it looked like the generic ATAPI layer would work great, but I have found that the ATA disk drives do NOT support generic ATAPI commands (through that ATAPICMD ioctl). So now I am at a loss as to how best to proceed. Should I just patch the code in ata-all.c that looks for an ATAPI_MASTER or SLAVE device? (and allow a ATA_MASTER and SLAVE) to receive ATAPI commands? Should I try to work up a new IOCTL to support ATAPI commands to ATA disks? Should I add IOCTL support to the AD device driver? Any suggestions? Ed To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message