#1080266 program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO

Package:
smartmontools
Source:
smartmontools
Description:
control and monitor storage systems using S.M.A.R.T.
Submitter:
Harald Dunkel
Date:
2025-12-29 23:01:01 UTC
Severity:
normal
#1080266#5
Date:
2024-09-01 10:25:15 UTC
From:
To:
Using the backport of 7.4 to Bookworm I see tons of messages

[Sun Sep  1 11:57:59 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Sep  1 11:57:59 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Sep  1 11:57:59 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Sep  1 11:57:59 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Sep  1 11:57:59 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Sep  1 11:57:59 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Sep  1 11:57:59 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Sep  1 11:57:59 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Sep  1 11:57:59 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Sep  1 11:57:59 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO

According to https://www.smartmontools.org/ticket/1618 this problem
should have been fixed with smartmontools 7.4, so I wonder what is
the story here?

Please excuse filing a bug report about a backports package, but this
bug was the main reason to use 7.4-2~bpo12+1 in the first place, and
I cannot upgrade to Testing or Unstable.


Regards
Harri

#1080266#10
Date:
2025-05-05 08:43:20 UTC
From:
To:
Please provide info about this system (RAID controller?) and a sample
smartctl command line which triggers these warnings.

Unfortunately the kernel does not tell which ioctl is "a deprecated SCSI
ioctl".

smartmontools 7.4 and 7.5 no longer use the deprecated
SCSI_IOCTL_SEND_COMMAND, except if one of the following options for very
old controllers are used:
'-d 3ware,N'
'-d marvell' (deprecated and subject to remove)

In all other cases, SG_IO (version 3 or version 4) or a vendor specific
ioctl is used.

#1080266#15
Date:
2025-12-29 03:40:34 UTC
From:
To:
I have neither 3ware nor marvell controllers installed, and yet I get

:
[Sun Dec 28 22:58:14 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Dec 28 22:58:14 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Dec 28 22:58:14 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Dec 28 22:58:14 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Dec 28 23:58:14 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Dec 28 23:58:14 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Dec 28 23:58:14 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Dec 28 23:58:14 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Dec 28 23:58:14 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Dec 28 23:58:14 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Dec 28 23:58:14 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Sun Dec 28 23:58:14 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 00:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 00:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 00:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 00:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 00:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 00:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 00:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 00:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 01:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 01:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 01:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 01:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 01:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 01:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 01:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 01:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 02:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 02:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 02:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 02:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 02:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 02:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 02:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 02:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 03:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
[Mon Dec 29 03:58:13 2025] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
:

Regards
Harri

#1080266#20
Date:
2025-12-29 22:50:42 UTC
From:
To:
Please provide more details, in particular a minimal smartctl command
line ('smartctl -i' ?)  which triggers the problem. Provide the debug
output (option '-r ioctl') of this command.

If possible, create an upstream issue:
https://github.com/smartmontools/smartmontools/issues