The incorrect smartctl terminal printout for GLTSD bit
T10's SPC-4 specifies the GLTSD bit in section 7.5.10 Control mode page as:
A global logging target save disable (GLTSD) bit set to zero specifies that the logical unit implicitly saves, at vendor specific intervals, each log parameter in which the TSD bit (see 7.3) is set to zero. A GLTSD bit set to one specifies that the logical unit shall not implicitly save any log parameters.
I have verified the functionality of the smartctl -S [on/off] /dev/sgX command on a SAS drive and believe the output is incorrect.
When you use -S on, you are enabling Autosaving of logs (set GLTSD bit to 0) but the printout says you are setting the GLTSD bit. This printout is incorrect.
When you use -S off you are disabling Autosaving of logs (set GLTSD bit to 1) but the printout says you are clearing the GLTSD bit. This printout is incorrect.
(See attached picture)
On the bright side, I have verified that the command does correct set/clear the bit in the Control mode page 0Ah .