Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75454 - Error message indicating a deprecated SCSI ioctl when running smartd
Summary: Error message indicating a deprecated SCSI ioctl when running smartd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://sourceforge.net/mailarchive/me...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-23 10:08 UTC by Jim Smilanich
Modified: 2006-10-04 23:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Smilanich 2004-12-23 10:08:34 UTC
I don't know if this is the right place to file this or not.  I'm using a 2.6.9-r?? kernel.  I emerged the latest stable version of smartmontools.  It's running fine, except that I'm getting the following error message every time it checks the health of my SCSI drives:

Dec 23 11:13:15 [kernel] program smartd is using a deprecated SCSI ioctl, please convert it to SG_IO
Dec 23 11:43:15 [kernel] program smartd is using a deprecated SCSI ioctl, please convert it to SG_IO



Reproducible: Always
Steps to Reproduce:
1. emerge smartmontools with defaults
2. define a SCSI drive or two in /etc/smartd.conf
3. run '/etc/init.d/smartd start'
4. tail -f /var/log/everything/current

or, 

1. Same as above
2. smartctl -a /dev/some-scsi-hard-drive
Actual Results:  
Dec 23 11:13:15 [kernel] program smartd is using a deprecated SCSI ioctl, please
convert it to SG_IO
Dec 23 11:43:15 [kernel] program smartd is using a deprecated SCSI ioctl, please
convert it to SG_IO


Expected Results:  
No error message.

I've got an Adaptec AIC7902 controller and a couple of Seagate ST336607LC
drives.  Here is the output from smartctl for one of the drives:

smartctl version 5.30 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Device: SEAGATE  ST336607LC       Version: 0006
Serial number: 3JA2CF6Y000074039LMM
Device type: disk
Transport protocol: Parallel SCSI (SPI-4)
Local Time is: Thu Dec 23 12:05:29 2004 CST
Device supports SMART and is Enabled
Temperature Warning Enabled
SMART Health Status: OK
Current Drive Temperature:     23 C
Drive Trip Temperature:        68 C

Vendor (Seagate) cache information
  Blocks sent to initiator = 2253100423
  Blocks received from initiator = 2210095914
  Blocks read from cache and sent to initiator = 31846464
  Number of read and write commands whose size <= segment size = 1641191758
  Number of read and write commands whose size > segment size = 622104
Vendor (Seagate) factory information
  number of hours powered up = 10368.57
  number of minutes until next internal SMART test = 104

Error counter log:
          Errors Corrected    Total      Total   Correction     Gigabytes    Total
              delay:       [rereads/    errors   algorithm      processed   
uncorrected
            minor | major  rewrites]  corrected  invocations   [10^9 bytes]  errors
read:      92184        0         0     92184      92184       1336.723           0
write:         0        0         0         0          0        347.315           0
verify:     4740        0         0      4740       4740         36.753           0

Non-medium error count:      519

[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']

SMART Self-test log
Num  Test              Status                 segment  LifeTime  LBA_first_err
[SK ASC ASQ]
     Description                              number   (hours)
# 1  Background short  Completed                   -     1                   -
[-   -    -]
# 2  Background short  Completed                   -     1                   -
[-   -    -]
Comment 1 SpanKY gentoo-dev 2004-12-23 13:36:35 UTC
does it still happen with 5.33 ?
Comment 2 Stonki 2005-02-10 12:35:19 UTC
yes, it does still happen with smartmontools 5.33 (sys-apps/smartmontools-5.33) on my AMD64 box. 

eb 10 20:33:39 mail program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
Feb 10 20:33:39 mail program smartctl is using a deprecated SCSI ioctl, please convert it to SG_I
Comment 3 SpanKY gentoo-dev 2005-02-10 15:40:21 UTC
known issue upstream ... glancing through cvs it doesnt look like it's been fixed yet
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-04 23:55:31 UTC
seems fixed in 5.36.