From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Brower Date: Fri, 16 Apr 2004 20:50:40 +0000 Subject: Re: smartctl & ioctl translation Message-Id: <40804720.5070504@usa.net> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org David S. Miller wrote: > On Mon, 12 Apr 2004 11:01:56 +0300 (EEST) > Meelis Roos wrote: > > >>smartctl -a does not work on 2.6.5 sparc64 (Debian unstable). Does the >>kernel need some more ioctl32 translations or does smartmontools need a >>recompile against newer headers? > > > I believe the former, can you look at the smartctl sources and let > me know which ioctl command number macros it makes use of in > it's ioctl() calls? For IDE drives: HDIO_DRIVE_TASK HDIO_GET_IDENTITY HDIO_DRIVE_CMD For SCSI drives: SCSI_IOCTL_SEND_COMMAND Meelis must be seeing this for IDE drives, not SCSI-- it seems there is no translation for HDIO_DRIVE_TASK (at least in my 2.4.23rc5 kernel and the lxr of 2.6.5). SCSI works fine. E