From owner-freebsd-hackers Mon Nov 18 7:55:41 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 8F9F737B401 for ; Mon, 18 Nov 2002 07:55:40 -0800 (PST) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC91C43E4A for ; Mon, 18 Nov 2002 07:55:37 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.5/8.12.6) id gAIFtaTt019103; Mon, 18 Nov 2002 16:55:36 +0100 (CET) (envelope-from sos) From: Soeren Schmidt Message-Id: <200211181555.gAIFtaTt019103@spider.deepcore.dk> Subject: Re: ATAPI vs ATA disk In-Reply-To: <1037626255.2801.20.camel@firestorm.crafts4life.com> To: Eduard Martinescu Date: Mon, 18 Nov 2002 16:55:36 +0100 (CET) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL98b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 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 It seems Eduard Martinescu wrote: > > 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? I have a patch coming up that supports the SMART commands, interpreting the data will be left to userland (where smartmontools might be able to do the job)... -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message