Skip to content
Snippets Groups Projects
Commit 086b8954 authored by chrfranke's avatar chrfranke
Browse files

Fix selective self test log revision number if '-T permissive' is specified

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2311 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent aa16ad03
No related branches found
No related tags found
No related merge requests found
CHANGELOG for smartmontools
$Id: CHANGELOG,v 1.582 2006/10/27 20:24:27 chrfranke Exp $
$Id: CHANGELOG,v 1.583 2006/10/27 21:30:02 chrfranke Exp $
The most recent version of this file is:
http://smartmontools.cvs.sourceforge.net/smartmontools/sm5/CHANGELOG?view=markup
......@@ -33,6 +33,9 @@ NOTES FOR FUTURE RELEASES: see TODO file.
<DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
[CF] Fix selective self test log revision number if '-T permissive'
is specified (Tested with Samsung HD401LJ).
[CF] Windows: Fixed int64 printf format for MinGW runtime.
[PW] Drive database: added Seagate Barracuda 7200.10 family, Seagate
......
......@@ -36,7 +36,7 @@
#include "extern.h"
#include "utility.h"
const char *atacmds_c_cvsid="$Id: atacmds.cpp,v 1.176 2006/08/25 06:06:24 sxzzsf Exp $"
const char *atacmds_c_cvsid="$Id: atacmds.cpp,v 1.177 2006/10/27 21:30:02 chrfranke Exp $"
ATACMDS_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID INT64_H_CVSID SCSIATA_H_CVSID UTILITY_H_CVSID;
// to hold onto exit code for atexit routine
......@@ -959,10 +959,17 @@ int ataWriteSelectiveSelfTestLog(int device, struct ata_smart_values *sv){
// Fix logversion if needed
if (data->logversion !=1) {
if (!con->permissive) {
pout("Error SMART Selective Self-Test Log Data Structure Revision not recognized\n"
"Revision number should be 1 but is %d. To be safe, aborting WRITE LOG\n", data->logversion);
"Revision number should be 1 but is %d. To be safe, aborting WRITE LOG.\n"
"To fix revision number, add one '-T permissive' option.\n", data->logversion);
return -2;
}
con->permissive--;
pout("SMART Selective Self-Test Log Data Structure Revision should be 1 but is %d\n"
"'-T permissive' specified, now trying to fix it by WRITE LOG.\n", data->logversion);
data->logversion = 1;
}
// Host is NOT allowed to write selective self-test log if a selective
// self-test is in progress.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment