Bug 1190 - HAL using a deprecated SCSI ioctl
Summary: HAL using a deprecated SCSI ioctl
Status: RESOLVED FIXED
Alias: None
Product: hal
Classification: Unclassified
Component: hald (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium major
Assignee: David Zeuthen (not reading bugmail)
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-26 03:01 UTC by Reuben Farrelly
Modified: 2006-01-13 09:58 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Reuben Farrelly 2004-08-26 03:01:02 UTC
HAL (as used in Redhat Linux, version 0.2.97.cvs20040823) prints out this 
message when running recent -mm Linux kernels:

"Aug 26 20:24:58 tornado kernel: program hald is using a deprecated SCSI 
ioctl, please convert it to SG_IO"

Actually, it spews out lots of copies of this message to the console ;-)

The code which generates this message in the kernel in 
drivers/scsi/scsi_ioctl.c states:

        /* Check for deprecated ioctls ... all the ioctls which don't
         * follow the new unique numbering scheme are deprecated */
        switch (cmd) {
        case SCSI_IOCTL_SEND_COMMAND:
        case SCSI_IOCTL_TEST_UNIT_READY:
        case SCSI_IOCTL_BENCHMARK_COMMAND:
        case SCSI_IOCTL_SYNC:
        case SCSI_IOCTL_START_UNIT:
        case SCSI_IOCTL_STOP_UNIT:
                printk(KERN_WARNING "program %s is using a deprecated SCSI 
ioctl, please convert it to SG_IO\n", current->comm);
                break;
        default:
                break;
        }

As most of the code in -mm and the scsi bk tree, eventually it is likely to 
get merged into mainline, it may be worthwhile to start using the new ioctl's 
in HAL sooner rather than later..
Comment 1 Reuben Farrelly 2004-08-28 17:47:01 UTC
This patch about deprecated SCSI ioctl's is now in the mainline Linux kernel.
Comment 2 David Zeuthen (not reading bugmail) 2004-09-01 08:07:31 UTC
Hi, Sorry for the lag. I'll look into this; of course, if you have a patch handy
that would be useful as well.
Comment 3 Danny Kukawka 2006-01-14 04:58:22 UTC
IMO this is fixed, no usage of deprecated commands in current HAL trees (0.4.x 
and 0.5.x).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.