From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759346AbYG1Vzy (ORCPT ); Mon, 28 Jul 2008 17:55:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752224AbYG1Vzo (ORCPT ); Mon, 28 Jul 2008 17:55:44 -0400 Received: from rtr.ca ([76.10.145.34]:4656 "EHLO mail.rtr.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750819AbYG1Vzn (ORCPT ); Mon, 28 Jul 2008 17:55:43 -0400 Message-ID: <488E405E.4010300@rtr.ca> Date: Mon, 28 Jul 2008 17:55:42 -0400 From: Mark Lord Organization: Real-Time Remedies Inc. User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: Bartlomiej Zolnierkiewicz Cc: petkovbb@gmail.com, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org Subject: Re: IDE S.M.A.R.T. ioctl errors References: <20080728060133.GA14007@gollum.tnic> <200807281644.38419.bzolnier@gmail.com> <9ea470500807280916k7824dc28m169f4c4db65023fa@mail.gmail.com> <200807281822.05211.bzolnier@gmail.com> In-Reply-To: <200807281822.05211.bzolnier@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If we're going to continue to keep drivers/ide on life-support, then perhaps one should just add SG_IO::ATA_16 support into it and leave the "legacy" ioctls alone. I've done this for linux-2.2.xx (really!), and the patch was rather tiny indeed -- and that custom kernel now supports all of the fancy ioctl() needs of hdparm-8.9 and smartctl. Perhaps a similar patch for drivers/ide ? Here's my 2.2.xx hack for perusal: http://empeg-hijack.sourceforge.net/patches/relative/v489-v490.patch.gz It won't work on current kernels, of course, but perhaps something similar would. Cheers