From b8b053b31da0dbfb2ec6c09fd5b1d3f0e3c0e640 Mon Sep 17 00:00:00 2001 From: dpgilbert <dpgilbert@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Wed, 10 Dec 2003 05:16:58 +0000 Subject: [PATCH] when skipping scsi device because SMART disable suggest they try 'smartctl -s on <devname>' git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@1360 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- sm5/smartd.c | 6 ++++-- sm5/smartd.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sm5/smartd.c b/sm5/smartd.c index ad3e6af92..4343f8f50 100644 --- a/sm5/smartd.c +++ b/sm5/smartd.c @@ -69,7 +69,7 @@ extern const char *atacmdnames_c_cvsid, *atacmds_c_cvsid, *ataprint_c_cvsid, *escalade_c_cvsid, *knowndrives_c_cvsid, *os_XXXX_c_cvsid, *scsicmds_c_cvsid, *utility_c_cvsid; -const char *smartd_c_cvsid="$Id: smartd.c,v 1.262 2003/12/09 21:25:08 ballen4705 Exp $" +const char *smartd_c_cvsid="$Id: smartd.c,v 1.263 2003/12/10 05:16:58 dpgilbert Exp $" ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID KNOWNDRIVES_H_CVSID SCSICMDS_H_CVSID SMARTD_H_CVSID UTILITY_H_CVSID; @@ -1118,7 +1118,9 @@ static int SCSIDeviceScan(cfgfile *cfg) { // N.B. The following is passive (i.e. it doesn't attempt to turn on // smart if it is off). This may change to be the same as the ATA side. if (!scsi_IsExceptionControlEnabled(&iec)) { - PrintOut(LOG_INFO, "Device: %s, IE (SMART) not enabled, skip device\n", device); + PrintOut(LOG_INFO, "Device: %s, IE (SMART) not enabled, skip device\n" + "Try 'smartctl -s on %s' to turn on SMART features\n", + device, device); CloseDevice(fd, device); return 3; } diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp index 2a360a650..11473e2e8 100644 --- a/sm5/smartd.cpp +++ b/sm5/smartd.cpp @@ -69,7 +69,7 @@ extern const char *atacmdnames_c_cvsid, *atacmds_c_cvsid, *ataprint_c_cvsid, *escalade_c_cvsid, *knowndrives_c_cvsid, *os_XXXX_c_cvsid, *scsicmds_c_cvsid, *utility_c_cvsid; -const char *smartd_c_cvsid="$Id: smartd.cpp,v 1.262 2003/12/09 21:25:08 ballen4705 Exp $" +const char *smartd_c_cvsid="$Id: smartd.cpp,v 1.263 2003/12/10 05:16:58 dpgilbert Exp $" ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID KNOWNDRIVES_H_CVSID SCSICMDS_H_CVSID SMARTD_H_CVSID UTILITY_H_CVSID; @@ -1118,7 +1118,9 @@ static int SCSIDeviceScan(cfgfile *cfg) { // N.B. The following is passive (i.e. it doesn't attempt to turn on // smart if it is off). This may change to be the same as the ATA side. if (!scsi_IsExceptionControlEnabled(&iec)) { - PrintOut(LOG_INFO, "Device: %s, IE (SMART) not enabled, skip device\n", device); + PrintOut(LOG_INFO, "Device: %s, IE (SMART) not enabled, skip device\n" + "Try 'smartctl -s on %s' to turn on SMART features\n", + device, device); CloseDevice(fd, device); return 3; } -- GitLab