hw:/ # smartctl -d scsi -t short  /dev/sg1 -r ioctl,2
smartctl 5.43 2012-06-30 r3573 [i686-linux-2.6.16.60-0.54.5-smp] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

 [inquiry: 12 00 00 00 24 00 ]
  scsi_status=0x0, host_status=0x0, driver_status=0x0
  info=0x0  duration=0 milliseconds  resid=0
  Incoming data, len=36:
 00     00 00 06 12 8b 01 10 02  53 45 41 47 41 54 45 20
 10     53 54 39 31 34 36 38 35  33 53 53 20 20 20 20 20
 20     30 30 30 32
 [send diagnostic: 1d 20 00 00 00 00 ]
  SG_IO ioctl failed, errno=1 [Operation not permitted]
Short offline self test failed [Operation not permitted]
hw:/ #
hw:/ #
hw:/ #
hw:/ # smartctl -d scsi -t short  /dev/sg2 -r ioctl,2
smartctl 5.43 2012-06-30 r3573 [i686-linux-2.6.16.60-0.54.5-smp] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

 [inquiry: 12 00 00 00 24 00 ]
  scsi_status=0x0, host_status=0x0, driver_status=0x0
  info=0x0  duration=0 milliseconds  resid=0
  Incoming data, len=36:
 00     00 00 06 12 8b 01 10 02  53 45 41 47 41 54 45 20
 10     53 54 39 31 34 36 38 35  33 53 53 20 20 20 20 20
 20     30 30 30 32
 [send diagnostic: 1d 20 00 00 00 00 ]
  SG_IO ioctl failed, errno=1 [Operation not permitted]
Short offline self test failed [Operation not permitted]

hw:/ # smartctl -d test   /dev/sg1 -r ioctl,2
smartctl 5.43 2012-06-30 r3573 [i686-linux-2.6.16.60-0.54.5-smp] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

/dev/sg1: Device of type 'scsi' [SCSI] detected
 [inquiry: 12 00 00 00 24 00 ]
  scsi_status=0x0, host_status=0x0, driver_status=0x0
  info=0x0  duration=0 milliseconds  resid=0
  Incoming data, len=36:
 00     00 00 06 12 8b 01 10 02  53 45 41 47 41 54 45 20
 10     53 54 39 31 34 36 38 35  33 53 53 20 20 20 20 20
 20     30 30 30 32
/dev/sg1: Device of type 'scsi' [SCSI] opened
hw:/ #