From be6c961ede1123aefe041ea7c5b7d1226ffac4d7 Mon Sep 17 00:00:00 2001 From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Fri, 11 Oct 2002 00:38:22 +0000 Subject: [PATCH] Spelling corrections git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@20 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- sm5/Makefile | 4 ++-- sm5/atacmds.h | 8 ++++---- sm5/ataprint.c | 36 ++++++++++++++++++------------------ sm5/ataprint.cpp | 36 ++++++++++++++++++------------------ sm5/ataprint.h | 4 ++-- sm5/scsicmds.c | 36 ++++++++++++++++++------------------ sm5/scsicmds.cpp | 36 ++++++++++++++++++------------------ sm5/scsiprint.c | 6 +++--- sm5/scsiprint.cpp | 6 +++--- sm5/smartctl.c | 6 +++--- sm5/smartctl.cpp | 6 +++--- sm5/smartd.c | 10 +++++----- sm5/smartd.cpp | 10 +++++----- 13 files changed, 102 insertions(+), 102 deletions(-) diff --git a/sm5/Makefile b/sm5/Makefile index f030149ed..09c8502bf 100644 --- a/sm5/Makefile +++ b/sm5/Makefile @@ -1,6 +1,6 @@ # Makefile for smartmontools # -# $Id: Makefile,v 1.6 2002/10/10 20:17:46 ballen4705 Exp $ +# $Id: Makefile,v 1.7 2002/10/11 00:38:22 ballen4705 Exp $ # # Copyright (C) 2002 Bruce Allen <ballen@uwm.edu> # @@ -38,7 +38,7 @@ scsicmds.o: scsicmds.h scsicmds.c ${CC} ${CFLAGS} -c scsicmds.c clean: - rm -f *.o smartctl smartd *~ smartmontools*.tar.gz smartmontools*.rpm + rm -f *.o smartctl smartd *~ #*# smartmontools*.tar.gz smartmontools*.rpm install: smartctl smartd smartctl.8 smartd.8 smartd.initd install -m 755 -o root -g root -D smartctl $(DESTDIR)/usr/sbin/smartctl diff --git a/sm5/atacmds.h b/sm5/atacmds.h index 9849efa30..65a5e3926 100644 --- a/sm5/atacmds.h +++ b/sm5/atacmds.h @@ -1,4 +1,4 @@ -// $Id: atacmds.h,v 1.2 2002/10/10 13:21:15 ballen4705 Exp $ +// $Id: atacmds.h,v 1.3 2002/10/11 00:38:22 ballen4705 Exp $ /* * atacmds.h * @@ -128,7 +128,7 @@ struct ata_smart_attribute { -/* ata_smart_values is format of the read drive Atrribute command */ +/* ata_smart_values is format of the read drive Attribute command */ /* see Table 34 of T13/1321D Rev 1 spec (Device SMART data structure) for *some* info */ struct ata_smart_values { unsigned short int revnumber; @@ -228,7 +228,7 @@ struct ata_smart_selftestlog { struct ata_smart_selftestlog_struct selftest_struct[21]; unsigned char vendorspecific[2]; unsigned char mostrecenttest; - unsigned char resevered[2]; + unsigned char reserved[2]; unsigned char chksum; } __attribute__ ((packed)); @@ -300,7 +300,7 @@ int ataVersionInfo ( struct hd_driveid drive); /* int ataSmartSupport ( int device, struct hd_driveid drive) * Check if S.M.A.R.T. is supported and enabled in drive -* returns -1:if S.M.A.R.T. cabability can not be checked +* returns -1:if S.M.A.R.T. capability can not be checked * returns 0: if drive does not support S.M.A.R.T. * 1: if drive supports S.M.A.R.T. but not enabled * 2: if drive supports S.M.A.R.T. and enabled diff --git a/sm5/ataprint.c b/sm5/ataprint.c index 10a76edf3..f53e1f6ff 100644 --- a/sm5/ataprint.c +++ b/sm5/ataprint.c @@ -1,4 +1,4 @@ -// $Id: ataprint.c,v 1.2 2002/10/10 21:36:47 ballen4705 Exp $ +// $Id: ataprint.c,v 1.3 2002/10/11 00:38:22 ballen4705 Exp $ /* * ataprint.c * @@ -143,7 +143,7 @@ void PrintSmartSelfExecStatus ( struct ata_smart_values data) printf ("the read element of the test failed\n"); break; case 15: - printf ("(%4d)\tSelf-test routine in progess\n\t\t\t\t\t", + printf ("(%4d)\tSelf-test routine in progress\n\t\t\t\t\t", data.self_test_exec_status); printf ("%1d0%% of test remaining\n", data.self_test_exec_status & 0x0f); @@ -205,7 +205,7 @@ void PrintSmartOfflineCollectCap ( struct ata_smart_values data) void PrintSmartCapability ( struct ata_smart_values data) { - printf ("Smart Capablilities: "); + printf ("Smart Capabilities: "); printf ("(0x%04x)\t", data.smart_capability); if (data.smart_capability == 0x00) @@ -368,7 +368,7 @@ void ataPrintSmartThresholds (struct ata_smart_thresholds data) for ( i = 0 ; i < 30 ; i++) { if (data.thres_entries[i].id != 0) - printf ("Atrribute %3i threshold: %02x (%2i)\n", + printf ("Attribute %3i threshold: %02x (%2i)\n", data.thres_entries[i].id, data.thres_entries[i].threshold, data.thres_entries[i].threshold); @@ -426,7 +426,7 @@ void ataPrintSmartErrorlog (struct ata_smart_errorlog data) printf( "ER = Error register\n"); printf( "STA = Status register\n\n"); printf( "Timestamp is time (in seconds) since the command that caused an error was accepted,\n"); - printf( "measured from the time the disk was powered-on, during the session when the error occured.\n"); + printf( "measured from the time the disk was powered-on, during the session when the error occurred.\n"); printf( "Note: timestamp \"wraps\" after 1193.046 hours = 49.710 days = 2^32 seconds.\n"); // now step through the five error log data structures (table 39 of spec) @@ -448,10 +448,10 @@ void ataPrintSmartErrorlog (struct ata_smart_errorlog data) } printf("\nError Log Structure %i:\n",5-k); // See table 42 of ATA5 spec - printf("Error occured at disk power-on lifetime: %u hours\n", + printf("Error occurred at disk power-on lifetime: %u hours\n", data.errorlog_struct[i].error_struct.timestamp); - printf("When the command that caused the error occured, the device was %s.\n",msgstate); - printf("After command completion occured, registers were:\n"); + printf("When the command that caused the error occurred, the device was %s.\n",msgstate); + printf("After command completion occurred, registers were:\n"); printf("ER:%02x SC:%02x SN:%02x CL:%02x CH:%02x D/H:%02x ST:%02x\n", data.errorlog_struct[i].error_struct.error_register, data.errorlog_struct[i].error_struct.sector_count, @@ -608,7 +608,7 @@ void ataPrintSmartAttribName ( unsigned char id ) printf("( 7)Seek Error Rate "); break; case 8: - printf("( 8)Seek Time Preformance "); + printf("( 8)Seek Time Peformance c"); break; case 9: printf("( 9)Power On Hours "); @@ -733,19 +733,19 @@ void ataPrintMain ( int fd ) if ( smartautosavedisable ){ if (ataDisableAutoSave(fd) != 0) { - printf( "Smartctl: Smart Disable Atribute Autosave Failed\n"); + printf( "Smartctl: Smart Disable Attribute Autosave Failed\n"); exit(-1); } - printf("S.M.A.R.T. Atribute Autosave Disabled\n"); + printf("S.M.A.R.T. Attribute Autosave Disabled\n"); } if ( smartautosaveenable ){ if (ataEnableAutoSave(fd) != 0) { - printf( "Smartctl: Smart Enable Atribute Autosave Failed\n"); + printf( "Smartctl: Smart Enable Attribute Autosave Failed\n"); exit(-1); } - printf("S.M.A.R.T. Atribute Autosave Enabled\n"); + printf("S.M.A.R.T. Attribute Autosave Enabled\n"); } /* for everything else read values and thresholds @@ -759,15 +759,15 @@ void ataPrintMain ( int fd ) if ( ataReadSmartThresholds ( fd, &smartthres) != 0 ) { - printf("Smartctl: Smart THresholds Read Failed\n"); + printf("Smartctl: Smart Thresholds Read Failed\n"); exit (-1); } if ( checksmart ) { /* pseudo is used because linux does not support access to - Task Fiule registers */ - + Task File registers */ + // I am very confused by this comment. Does anyone get it? Bruce ataPsuedoCheckSmart ( smartval , smartthres); } @@ -929,7 +929,7 @@ void ataPrintMain ( int fd ) if ( ataSmartExtendSelfTest (fd) != 0) { - printf( "S.M.A.R.T. Extendend Self Test Failed\n"); + printf( "S.M.A.R.T. Extended Self Test Failed\n"); exit(-1); } @@ -952,7 +952,7 @@ void ataPrintMain ( int fd ) if ( ataSmartExtendCapSelfTest (fd) != 0) { - printf( "S.M.A.R.T. Extendend Self Test Failed\n"); + printf( "S.M.A.R.T. Extended Self Test Failed\n"); exit(-1); } diff --git a/sm5/ataprint.cpp b/sm5/ataprint.cpp index 79fd7e357..61be6e32a 100644 --- a/sm5/ataprint.cpp +++ b/sm5/ataprint.cpp @@ -1,4 +1,4 @@ -// $Id: ataprint.cpp,v 1.2 2002/10/10 21:36:47 ballen4705 Exp $ +// $Id: ataprint.cpp,v 1.3 2002/10/11 00:38:22 ballen4705 Exp $ /* * ataprint.c * @@ -143,7 +143,7 @@ void PrintSmartSelfExecStatus ( struct ata_smart_values data) printf ("the read element of the test failed\n"); break; case 15: - printf ("(%4d)\tSelf-test routine in progess\n\t\t\t\t\t", + printf ("(%4d)\tSelf-test routine in progress\n\t\t\t\t\t", data.self_test_exec_status); printf ("%1d0%% of test remaining\n", data.self_test_exec_status & 0x0f); @@ -205,7 +205,7 @@ void PrintSmartOfflineCollectCap ( struct ata_smart_values data) void PrintSmartCapability ( struct ata_smart_values data) { - printf ("Smart Capablilities: "); + printf ("Smart Capabilities: "); printf ("(0x%04x)\t", data.smart_capability); if (data.smart_capability == 0x00) @@ -368,7 +368,7 @@ void ataPrintSmartThresholds (struct ata_smart_thresholds data) for ( i = 0 ; i < 30 ; i++) { if (data.thres_entries[i].id != 0) - printf ("Atrribute %3i threshold: %02x (%2i)\n", + printf ("Attribute %3i threshold: %02x (%2i)\n", data.thres_entries[i].id, data.thres_entries[i].threshold, data.thres_entries[i].threshold); @@ -426,7 +426,7 @@ void ataPrintSmartErrorlog (struct ata_smart_errorlog data) printf( "ER = Error register\n"); printf( "STA = Status register\n\n"); printf( "Timestamp is time (in seconds) since the command that caused an error was accepted,\n"); - printf( "measured from the time the disk was powered-on, during the session when the error occured.\n"); + printf( "measured from the time the disk was powered-on, during the session when the error occurred.\n"); printf( "Note: timestamp \"wraps\" after 1193.046 hours = 49.710 days = 2^32 seconds.\n"); // now step through the five error log data structures (table 39 of spec) @@ -448,10 +448,10 @@ void ataPrintSmartErrorlog (struct ata_smart_errorlog data) } printf("\nError Log Structure %i:\n",5-k); // See table 42 of ATA5 spec - printf("Error occured at disk power-on lifetime: %u hours\n", + printf("Error occurred at disk power-on lifetime: %u hours\n", data.errorlog_struct[i].error_struct.timestamp); - printf("When the command that caused the error occured, the device was %s.\n",msgstate); - printf("After command completion occured, registers were:\n"); + printf("When the command that caused the error occurred, the device was %s.\n",msgstate); + printf("After command completion occurred, registers were:\n"); printf("ER:%02x SC:%02x SN:%02x CL:%02x CH:%02x D/H:%02x ST:%02x\n", data.errorlog_struct[i].error_struct.error_register, data.errorlog_struct[i].error_struct.sector_count, @@ -608,7 +608,7 @@ void ataPrintSmartAttribName ( unsigned char id ) printf("( 7)Seek Error Rate "); break; case 8: - printf("( 8)Seek Time Preformance "); + printf("( 8)Seek Time Peformance c"); break; case 9: printf("( 9)Power On Hours "); @@ -733,19 +733,19 @@ void ataPrintMain ( int fd ) if ( smartautosavedisable ){ if (ataDisableAutoSave(fd) != 0) { - printf( "Smartctl: Smart Disable Atribute Autosave Failed\n"); + printf( "Smartctl: Smart Disable Attribute Autosave Failed\n"); exit(-1); } - printf("S.M.A.R.T. Atribute Autosave Disabled\n"); + printf("S.M.A.R.T. Attribute Autosave Disabled\n"); } if ( smartautosaveenable ){ if (ataEnableAutoSave(fd) != 0) { - printf( "Smartctl: Smart Enable Atribute Autosave Failed\n"); + printf( "Smartctl: Smart Enable Attribute Autosave Failed\n"); exit(-1); } - printf("S.M.A.R.T. Atribute Autosave Enabled\n"); + printf("S.M.A.R.T. Attribute Autosave Enabled\n"); } /* for everything else read values and thresholds @@ -759,15 +759,15 @@ void ataPrintMain ( int fd ) if ( ataReadSmartThresholds ( fd, &smartthres) != 0 ) { - printf("Smartctl: Smart THresholds Read Failed\n"); + printf("Smartctl: Smart Thresholds Read Failed\n"); exit (-1); } if ( checksmart ) { /* pseudo is used because linux does not support access to - Task Fiule registers */ - + Task File registers */ + // I am very confused by this comment. Does anyone get it? Bruce ataPsuedoCheckSmart ( smartval , smartthres); } @@ -929,7 +929,7 @@ void ataPrintMain ( int fd ) if ( ataSmartExtendSelfTest (fd) != 0) { - printf( "S.M.A.R.T. Extendend Self Test Failed\n"); + printf( "S.M.A.R.T. Extended Self Test Failed\n"); exit(-1); } @@ -952,7 +952,7 @@ void ataPrintMain ( int fd ) if ( ataSmartExtendCapSelfTest (fd) != 0) { - printf( "S.M.A.R.T. Extendend Self Test Failed\n"); + printf( "S.M.A.R.T. Extended Self Test Failed\n"); exit(-1); } diff --git a/sm5/ataprint.h b/sm5/ataprint.h index 8969c0732..cce26e0f2 100644 --- a/sm5/ataprint.h +++ b/sm5/ataprint.h @@ -1,4 +1,4 @@ -// $Id: ataprint.h,v 1.1 2002/10/09 17:56:58 ballen4705 Exp $ +// $Id: ataprint.h,v 1.2 2002/10/11 00:38:22 ballen4705 Exp $ /* * ataprint.c @@ -24,7 +24,7 @@ #include "atacmds.h" -/* Print Formart of Structures for SMART information */ +/* Print Format of Structures for SMART information */ /* Prints ATA Drive Information and S.M.A.R.T. Capability */ diff --git a/sm5/scsicmds.c b/sm5/scsicmds.c index ad36ec5c5..cd05770e6 100644 --- a/sm5/scsicmds.c +++ b/sm5/scsicmds.c @@ -1,4 +1,4 @@ -// $Id: scsicmds.c,v 1.1 2002/10/09 17:56:58 ballen4705 Exp $ +// $Id: scsicmds.c,v 1.2 2002/10/11 00:38:22 ballen4705 Exp $ /* * scsicmds.c @@ -576,33 +576,33 @@ char* scsiTapeAlertsTapeDevice ( unsigned short code) { " ", "The tape drive is having problems reading data. No data has been lost, but there has been a reduction in the performance of the tape.", "The tape drive is having problems writing data. No data has been lost, but there has been a reduction in the performance of the tape.", - "The operation has stopped because an error has occured while reading or writing data which the drive cannot correct.", + "The operation has stopped because an error has occurred while reading or writing data which the drive cannot correct.", "Your data is at risk:\n1. Copy any data you require from this tape. \n2. Do not use this tape again.\n3. Restart the operation with a different tape.", - "The tape is damaged or the drive is dault. Call the tape drive suppiler helpline.", + "The tape is damaged or the drive is faulty. Call the tape drive supplier helpline.", "The tape is from a faulty batch or the tape drive is faulty:\n1. Use a good tape to test the drive.\n2. If problem persists, call the tape drive supplier helpline.", "The tape cartridge has reached the end of its calculated useful life: \n1. Copy data you need to another tape.\n2. Discard the old tape.", - "The tape cartridge is not data-grade. Any data you back up to the tape is at risk. Replace the cartge with a data-grade tape.", + "The tape cartridge is not data-grade. Any data you back up to the tape is at risk. Replace the cartridge with a data-grade tape.", "You are trying to write to a write-protected cartridge. Remove the write-protection or use another tape.", "You cannot eject the cartridge because the tape drive is in use. Wait until the operation is complete before ejecting the cartridge.", "The tape in the drive is a cleaning cartridge.", "You have tried to load a cartridge of a type which is not supported by this drive.", "The operation has failed because the tape in the drive has snapped:\n1. Discard the old tape.\n2. Restart the operation with a different tape.", - "The operation has failed because the tape in the drive has snapped:\n1. Do not attept to extract the tape cartridge\n2. Call the tape drive supplier helpline.", + "The operation has failed because the tape in the drive has snapped:\n1. Do not atempt to extract the tape cartridge\n2. Call the tape drive supplier helpline.", "The memory in the tape cartridge has failed, which reduces performance. Do not use the cartridge for further backup operations.", "The operation has failed because the tape cartridge was manually ejected while the tape drive was actively writing or reading.", "You have loaded of a type that is read-only in this drive. The cartridge will appear as write-protected.", - "The directory on the tape cartridge has been corruptrf. File search performance will be degraded. The tape directory can be rebuilt by reading all the data on the cartridge.", - "The tape cartridge is newaring the end of its calculated life. It is recommended that you:\n1. Use another tape cartridge for your next backup.\n2.Store this tape in a safe place in casse you need to restore data from it.", - "The tape drive needs cleaning:\n1. If the operation has stopped, ejct the tape and clean the drive.\n2. If the operation has not stopped, wait for it ti finish and then clean the drive. Check the tape drive users manual for device specific cleanning instructions.", - "The tape drive is due for routine cleaning:\n1. Wait for the cuurent operation to finish.\n2. The use a cleaning cartridge. Check the tape drive users manual for device specific cleaning instructions.", + "The directory on the tape cartridge has been corrupted. File search performance will be degraded. The tape directory can be rebuilt by reading all the data on the cartridge.", + "The tape cartridge is nearing the end of its calculated life. It is recommended that you:\n1. Use another tape cartridge for your next backup.\n2.Store this tape in a safe place in casse you need to restore data from it.", + "The tape drive needs cleaning:\n1. If the operation has stopped, eject the tape and clean the drive.\n2. If the operation has not stopped, wait for it ti finish and then clean the drive. Check the tape drive users manual for device specific cleaning instructions.", + "The tape drive is due for routine cleaning:\n1. Wait for the current operation to finish.\n2. The use a cleaning cartridge. Check the tape drive users manual for device specific cleaning instructions.", "The last cleaning cartridge used in the tape drive has worn out:\n1. Discard the worn out cleaning cartridge.\n2. Wait for the current operation to finish.\n 3.Then use a new cleaning cartridge.", "The last cleaning cartridge used in the tape drive was an invalid type:\n1. Do not use this cleaning cartridge in this drive.\n2. Wait for the current operation to finish.\n 3.Then use a new cleaning cartridge.", "The tape drive has requested a retention operation", "A redundant interface port on the tape drive has failed", "A tape drive cooling fan has failed", - "A redundant power supply has dailed inside the tape drive enclosure. Check the enclosure users manual for instructions on replacing the failed power supply.", + "A redundant power supply has failed inside the tape drive enclosure. Check the enclosure users manual for instructions on replacing the failed power supply.", "The tape drive power consumption is outside the specified range.", - "Preventive maintenance of the tape drive is requiired. Check the tape drive users manual for device specific perventive maintenance tasks or call the tape drive supplier helpline.", + "Preventive maintenance of the tape drive is required. Check the tape drive users manual for device specific preventive maintenance tasks or call the tape drive supplier helpline.", "The tape drive has a hardware fault:\n1. Eject the tape or magazine.\n2. Reset the drive.\n3. Restart the operation.", "The tape drive has a hardware fault:\n1. Turn the tape drive off and then on again.\n2. Restart the operation.\n3. If the problem persists, call the tape drive supplier helpline.\n Check the tape drive users manual for device specific instructions on turning the device power in and off.", "The tape drive has a problem with the host interface:\n1. Check the cables and calble connections.\n2. Restart the operation.", @@ -614,20 +614,20 @@ char* scsiTapeAlertsTapeDevice ( unsigned short code) "A hardware failure of the tape drive is predicted. Call the tape drive supplier helpline.", "The tape drive may have a fault. Check for availability of diagnostic information and run extended diagnostics if applicable. Check the tape drive users manual for instruction on running extended diagnostic tests and retrieving diagnostic data", "The changer mechanism is having difficulty communicating with the tape drive:\n1. Turn the autoloader off then on.\n2. Restart the operation.\n3. If problem persists, call the tape drive supplier helpline.", - "A tape has been left in the autoloader by a pervious hardware fault:\n1. Insert an empty magazine to clear the fault.\n2. If the fault does not clear, turn the autoloader off and then on again.\n3. If the problem persists, call the tape drive supplier helpline.", + "A tape has been left in the autoloader by a previous hardware fault:\n1. Insert an empty magazine to clear the fault.\n2. If the fault does not clear, turn the autoloader off and then on again.\n3. If the problem persists, call the tape drive supplier helpline.", "There is a problem with the autoloader mechanism.", "The operation has failed because the autoloader door is open:\n1. Clear any obstructions from the autoloader door.\n2. Eject the magazine and then insert it again.\n3. If the fault does not clear, turn the autoloader off and then on again.\n4. If the problem persists, call the tape drive supplier helpline.", - "The autoloader has a hardware fault:\n1. Turn the autoloader off and then on again.\n2. Restart the operation.\n3. If the problem persists, call the tape drive supplier helpline.\n Check the autoloader users manual for device specific instrictions on turning the device power on and off.", + "The autoloader has a hardware fault:\n1. Turn the autoloader off and then on again.\n2. Restart the operation.\n3. If the problem persists, call the tape drive supplier helpline.\n Check the autoloader users manual for device specific instructions on turning the device power on and off.", "The autoloader cannot operate without the magazine,\n1. Insert the magazine into the autoloader.\n 2. Restart the operation.", "A hardware failure of the changer mechanism is predicted. Call the tape drive supplier helpline.", " ", " ", " ", "Media statistics have been lost at some time in the past", - "The tape directory on the tape cartridge just unloaded has been corrupted. File seach performance will be degraded. The tape directory can be rebuilt by reading all the data.", - "The tape just unloaded could not write its system area successfully:\n1. Copy data to another tappe cartridge.\n2. Discard the old cartridge.", + "The tape directory on the tape cartridge just unloaded has been corrupted. File search performance will be degraded. The tape directory can be rebuilt by reading all the data.", + "The tape just unloaded could not write its system area successfully:\n1. Copy data to another tape cartridge.\n2. Discard the old cartridge.", "The tape system are could not be read successfully at load time:\n1. Copy data to another tape cartridge.\n2. Discard the old cartridge.", - "The start or data could not be found on the tape:\n1. Check you are using the correct format tape.\n2. Discard the tape or return the tape to you supploer", + "The start or data could not be found on the tape:\n1. Check you are using the correct format tape.\n2. Discard the tape or return the tape to you supplier", }; return ( code > NUMENTRIESINTAPEALERTSTABLE)? "Unknown Alert" : TapeAlertsMessageTable[code]; @@ -772,8 +772,8 @@ UINT8 scsiSmartOfflineTest (int device) tBuf[2] = 0x00; /* Reserved */ tBuf[3] = 0x00; /* Page Length MSB */ tBuf[4] = 0x04; /* Page Length LSB */ - tBuf[5] = 0x03; /* SMART REvision */ - tBuf[6] = 0x00; /* Reservved */ + tBuf[5] = 0x03; /* SMART Revision */ + tBuf[6] = 0x00; /* Reserved */ tBuf[7] = 0x00; /* Off-line Immediate Time MSB */ tBuf[8] = 0x00; /* Off-line Immediate Time LSB */ diff --git a/sm5/scsicmds.cpp b/sm5/scsicmds.cpp index 8c187a405..86c02b13f 100644 --- a/sm5/scsicmds.cpp +++ b/sm5/scsicmds.cpp @@ -1,4 +1,4 @@ -// $Id: scsicmds.cpp,v 1.1 2002/10/09 17:56:58 ballen4705 Exp $ +// $Id: scsicmds.cpp,v 1.2 2002/10/11 00:38:22 ballen4705 Exp $ /* * scsicmds.c @@ -576,33 +576,33 @@ char* scsiTapeAlertsTapeDevice ( unsigned short code) { " ", "The tape drive is having problems reading data. No data has been lost, but there has been a reduction in the performance of the tape.", "The tape drive is having problems writing data. No data has been lost, but there has been a reduction in the performance of the tape.", - "The operation has stopped because an error has occured while reading or writing data which the drive cannot correct.", + "The operation has stopped because an error has occurred while reading or writing data which the drive cannot correct.", "Your data is at risk:\n1. Copy any data you require from this tape. \n2. Do not use this tape again.\n3. Restart the operation with a different tape.", - "The tape is damaged or the drive is dault. Call the tape drive suppiler helpline.", + "The tape is damaged or the drive is faulty. Call the tape drive supplier helpline.", "The tape is from a faulty batch or the tape drive is faulty:\n1. Use a good tape to test the drive.\n2. If problem persists, call the tape drive supplier helpline.", "The tape cartridge has reached the end of its calculated useful life: \n1. Copy data you need to another tape.\n2. Discard the old tape.", - "The tape cartridge is not data-grade. Any data you back up to the tape is at risk. Replace the cartge with a data-grade tape.", + "The tape cartridge is not data-grade. Any data you back up to the tape is at risk. Replace the cartridge with a data-grade tape.", "You are trying to write to a write-protected cartridge. Remove the write-protection or use another tape.", "You cannot eject the cartridge because the tape drive is in use. Wait until the operation is complete before ejecting the cartridge.", "The tape in the drive is a cleaning cartridge.", "You have tried to load a cartridge of a type which is not supported by this drive.", "The operation has failed because the tape in the drive has snapped:\n1. Discard the old tape.\n2. Restart the operation with a different tape.", - "The operation has failed because the tape in the drive has snapped:\n1. Do not attept to extract the tape cartridge\n2. Call the tape drive supplier helpline.", + "The operation has failed because the tape in the drive has snapped:\n1. Do not atempt to extract the tape cartridge\n2. Call the tape drive supplier helpline.", "The memory in the tape cartridge has failed, which reduces performance. Do not use the cartridge for further backup operations.", "The operation has failed because the tape cartridge was manually ejected while the tape drive was actively writing or reading.", "You have loaded of a type that is read-only in this drive. The cartridge will appear as write-protected.", - "The directory on the tape cartridge has been corruptrf. File search performance will be degraded. The tape directory can be rebuilt by reading all the data on the cartridge.", - "The tape cartridge is newaring the end of its calculated life. It is recommended that you:\n1. Use another tape cartridge for your next backup.\n2.Store this tape in a safe place in casse you need to restore data from it.", - "The tape drive needs cleaning:\n1. If the operation has stopped, ejct the tape and clean the drive.\n2. If the operation has not stopped, wait for it ti finish and then clean the drive. Check the tape drive users manual for device specific cleanning instructions.", - "The tape drive is due for routine cleaning:\n1. Wait for the cuurent operation to finish.\n2. The use a cleaning cartridge. Check the tape drive users manual for device specific cleaning instructions.", + "The directory on the tape cartridge has been corrupted. File search performance will be degraded. The tape directory can be rebuilt by reading all the data on the cartridge.", + "The tape cartridge is nearing the end of its calculated life. It is recommended that you:\n1. Use another tape cartridge for your next backup.\n2.Store this tape in a safe place in casse you need to restore data from it.", + "The tape drive needs cleaning:\n1. If the operation has stopped, eject the tape and clean the drive.\n2. If the operation has not stopped, wait for it ti finish and then clean the drive. Check the tape drive users manual for device specific cleaning instructions.", + "The tape drive is due for routine cleaning:\n1. Wait for the current operation to finish.\n2. The use a cleaning cartridge. Check the tape drive users manual for device specific cleaning instructions.", "The last cleaning cartridge used in the tape drive has worn out:\n1. Discard the worn out cleaning cartridge.\n2. Wait for the current operation to finish.\n 3.Then use a new cleaning cartridge.", "The last cleaning cartridge used in the tape drive was an invalid type:\n1. Do not use this cleaning cartridge in this drive.\n2. Wait for the current operation to finish.\n 3.Then use a new cleaning cartridge.", "The tape drive has requested a retention operation", "A redundant interface port on the tape drive has failed", "A tape drive cooling fan has failed", - "A redundant power supply has dailed inside the tape drive enclosure. Check the enclosure users manual for instructions on replacing the failed power supply.", + "A redundant power supply has failed inside the tape drive enclosure. Check the enclosure users manual for instructions on replacing the failed power supply.", "The tape drive power consumption is outside the specified range.", - "Preventive maintenance of the tape drive is requiired. Check the tape drive users manual for device specific perventive maintenance tasks or call the tape drive supplier helpline.", + "Preventive maintenance of the tape drive is required. Check the tape drive users manual for device specific preventive maintenance tasks or call the tape drive supplier helpline.", "The tape drive has a hardware fault:\n1. Eject the tape or magazine.\n2. Reset the drive.\n3. Restart the operation.", "The tape drive has a hardware fault:\n1. Turn the tape drive off and then on again.\n2. Restart the operation.\n3. If the problem persists, call the tape drive supplier helpline.\n Check the tape drive users manual for device specific instructions on turning the device power in and off.", "The tape drive has a problem with the host interface:\n1. Check the cables and calble connections.\n2. Restart the operation.", @@ -614,20 +614,20 @@ char* scsiTapeAlertsTapeDevice ( unsigned short code) "A hardware failure of the tape drive is predicted. Call the tape drive supplier helpline.", "The tape drive may have a fault. Check for availability of diagnostic information and run extended diagnostics if applicable. Check the tape drive users manual for instruction on running extended diagnostic tests and retrieving diagnostic data", "The changer mechanism is having difficulty communicating with the tape drive:\n1. Turn the autoloader off then on.\n2. Restart the operation.\n3. If problem persists, call the tape drive supplier helpline.", - "A tape has been left in the autoloader by a pervious hardware fault:\n1. Insert an empty magazine to clear the fault.\n2. If the fault does not clear, turn the autoloader off and then on again.\n3. If the problem persists, call the tape drive supplier helpline.", + "A tape has been left in the autoloader by a previous hardware fault:\n1. Insert an empty magazine to clear the fault.\n2. If the fault does not clear, turn the autoloader off and then on again.\n3. If the problem persists, call the tape drive supplier helpline.", "There is a problem with the autoloader mechanism.", "The operation has failed because the autoloader door is open:\n1. Clear any obstructions from the autoloader door.\n2. Eject the magazine and then insert it again.\n3. If the fault does not clear, turn the autoloader off and then on again.\n4. If the problem persists, call the tape drive supplier helpline.", - "The autoloader has a hardware fault:\n1. Turn the autoloader off and then on again.\n2. Restart the operation.\n3. If the problem persists, call the tape drive supplier helpline.\n Check the autoloader users manual for device specific instrictions on turning the device power on and off.", + "The autoloader has a hardware fault:\n1. Turn the autoloader off and then on again.\n2. Restart the operation.\n3. If the problem persists, call the tape drive supplier helpline.\n Check the autoloader users manual for device specific instructions on turning the device power on and off.", "The autoloader cannot operate without the magazine,\n1. Insert the magazine into the autoloader.\n 2. Restart the operation.", "A hardware failure of the changer mechanism is predicted. Call the tape drive supplier helpline.", " ", " ", " ", "Media statistics have been lost at some time in the past", - "The tape directory on the tape cartridge just unloaded has been corrupted. File seach performance will be degraded. The tape directory can be rebuilt by reading all the data.", - "The tape just unloaded could not write its system area successfully:\n1. Copy data to another tappe cartridge.\n2. Discard the old cartridge.", + "The tape directory on the tape cartridge just unloaded has been corrupted. File search performance will be degraded. The tape directory can be rebuilt by reading all the data.", + "The tape just unloaded could not write its system area successfully:\n1. Copy data to another tape cartridge.\n2. Discard the old cartridge.", "The tape system are could not be read successfully at load time:\n1. Copy data to another tape cartridge.\n2. Discard the old cartridge.", - "The start or data could not be found on the tape:\n1. Check you are using the correct format tape.\n2. Discard the tape or return the tape to you supploer", + "The start or data could not be found on the tape:\n1. Check you are using the correct format tape.\n2. Discard the tape or return the tape to you supplier", }; return ( code > NUMENTRIESINTAPEALERTSTABLE)? "Unknown Alert" : TapeAlertsMessageTable[code]; @@ -772,8 +772,8 @@ UINT8 scsiSmartOfflineTest (int device) tBuf[2] = 0x00; /* Reserved */ tBuf[3] = 0x00; /* Page Length MSB */ tBuf[4] = 0x04; /* Page Length LSB */ - tBuf[5] = 0x03; /* SMART REvision */ - tBuf[6] = 0x00; /* Reservved */ + tBuf[5] = 0x03; /* SMART Revision */ + tBuf[6] = 0x00; /* Reserved */ tBuf[7] = 0x00; /* Off-line Immediate Time MSB */ tBuf[8] = 0x00; /* Off-line Immediate Time LSB */ diff --git a/sm5/scsiprint.c b/sm5/scsiprint.c index dea0ccb37..7decdf858 100644 --- a/sm5/scsiprint.c +++ b/sm5/scsiprint.c @@ -1,4 +1,4 @@ -// $Id: scsiprint.c,v 1.1 2002/10/09 17:56:58 ballen4705 Exp $ +// $Id: scsiprint.c,v 1.2 2002/10/11 00:38:22 ballen4705 Exp $ /* * scsiprint.c * @@ -353,7 +353,7 @@ void scsiPrintMain (int fd) { if ( scsiSmartExtendSelfTest (fd) != 0) { - printf( "S.M.A.R.T. Extendend Self Test Failed\n"); + printf( "S.M.A.R.T. Extended Self Test Failed\n"); exit(-1); } @@ -366,7 +366,7 @@ void scsiPrintMain (int fd) if ( scsiSmartExtendCapSelfTest (fd) != 0) { - printf( "S.M.A.R.T. Extendend Self Test Failed\n"); + printf( "S.M.A.R.T. Extended Self Test Failed\n"); exit(-1); } diff --git a/sm5/scsiprint.cpp b/sm5/scsiprint.cpp index 35de1fab0..a8a3361ab 100644 --- a/sm5/scsiprint.cpp +++ b/sm5/scsiprint.cpp @@ -1,4 +1,4 @@ -// $Id: scsiprint.cpp,v 1.1 2002/10/09 17:56:58 ballen4705 Exp $ +// $Id: scsiprint.cpp,v 1.2 2002/10/11 00:38:22 ballen4705 Exp $ /* * scsiprint.c * @@ -353,7 +353,7 @@ void scsiPrintMain (int fd) { if ( scsiSmartExtendSelfTest (fd) != 0) { - printf( "S.M.A.R.T. Extendend Self Test Failed\n"); + printf( "S.M.A.R.T. Extended Self Test Failed\n"); exit(-1); } @@ -366,7 +366,7 @@ void scsiPrintMain (int fd) if ( scsiSmartExtendCapSelfTest (fd) != 0) { - printf( "S.M.A.R.T. Extendend Self Test Failed\n"); + printf( "S.M.A.R.T. Extended Self Test Failed\n"); exit(-1); } diff --git a/sm5/smartctl.c b/sm5/smartctl.c index 082d5e4ca..c281cc49b 100644 --- a/sm5/smartctl.c +++ b/sm5/smartctl.c @@ -1,4 +1,4 @@ -// $Id: smartctl.c,v 1.2 2002/10/10 13:21:15 ballen4705 Exp $ +// $Id: smartctl.c,v 1.3 2002/10/11 00:38:22 ballen4705 Exp $ /* * smartctl.c * @@ -60,7 +60,7 @@ void Usage ( void){ printf( "smartctl version %i.%i - S.M.A.R.T. Control Program\n", VERSION_MAJOR, VERSION_MINOR); - printf("Home page of project is " PROJECTHOME "/\n\n"); + printf("Home page of project is " PROJECTHOME "\n\n"); printf( "usage: smartctl -[options] [device]\n"); printf( "Read Only Options:\n"); printf( "\t\t%c\t\tPrint Copyright and License information\n", @@ -231,7 +231,7 @@ int main (int argc, char **argv){ printf("is free software, and you are welcome to redistribute it\n"); printf("under the terms of the GNU General Public License Version 2.\n"); printf("See http://www.gnu.org for further details.\n\n"); - printf("CVS version ID %s\n","$Id: smartctl.c,v 1.2 2002/10/10 13:21:15 ballen4705 Exp $"); + printf("CVS version ID %s\n","$Id: smartctl.c,v 1.3 2002/10/11 00:38:22 ballen4705 Exp $"); exit(0); } diff --git a/sm5/smartctl.cpp b/sm5/smartctl.cpp index 75e248dc4..1a3a4df7e 100644 --- a/sm5/smartctl.cpp +++ b/sm5/smartctl.cpp @@ -1,4 +1,4 @@ -// $Id: smartctl.cpp,v 1.2 2002/10/10 13:21:15 ballen4705 Exp $ +// $Id: smartctl.cpp,v 1.3 2002/10/11 00:38:22 ballen4705 Exp $ /* * smartctl.c * @@ -60,7 +60,7 @@ void Usage ( void){ printf( "smartctl version %i.%i - S.M.A.R.T. Control Program\n", VERSION_MAJOR, VERSION_MINOR); - printf("Home page of project is " PROJECTHOME "/\n\n"); + printf("Home page of project is " PROJECTHOME "\n\n"); printf( "usage: smartctl -[options] [device]\n"); printf( "Read Only Options:\n"); printf( "\t\t%c\t\tPrint Copyright and License information\n", @@ -231,7 +231,7 @@ int main (int argc, char **argv){ printf("is free software, and you are welcome to redistribute it\n"); printf("under the terms of the GNU General Public License Version 2.\n"); printf("See http://www.gnu.org for further details.\n\n"); - printf("CVS version ID %s\n","$Id: smartctl.cpp,v 1.2 2002/10/10 13:21:15 ballen4705 Exp $"); + printf("CVS version ID %s\n","$Id: smartctl.cpp,v 1.3 2002/10/11 00:38:22 ballen4705 Exp $"); exit(0); } diff --git a/sm5/smartd.c b/sm5/smartd.c index b2963057a..af8ca74ff 100644 --- a/sm5/smartd.c +++ b/sm5/smartd.c @@ -1,4 +1,4 @@ -// $Id: smartd.c,v 1.3 2002/10/10 13:21:17 ballen4705 Exp $ +// $Id: smartd.c,v 1.4 2002/10/11 00:38:22 ballen4705 Exp $ /* * smartd.c * @@ -118,7 +118,7 @@ void atadevicescan ( atadevices_t *devices){ // This function is hard to read and ought to be rewritten // A couple of obvious questions -- why isn't fd always closed if not used? -// Why in the world is thea four-byte integer cast to a pointer to an eight-byte object?? +// Why in the world is the four-byte integer cast to a pointer to an eight-byte object?? void scsidevicescan ( scsidevices_t *devices){ int i, fd, smartsupport; unsigned char tBuf[4096]; @@ -231,11 +231,11 @@ int scsiCheckDevice( scsidevices_t *drive) printout(LOG_CRIT, "Device: %s, S.M.A.R.T. Failure: (%02x) %s\n", drive->devicename, returnvalue, scsiSmartGetSenseCode( returnvalue) ); else - printout(LOG_INFO,"Device: %s, Okay attribute: %d\n", drive->devicename, returnvalue); + printout(LOG_INFO,"Device: %s, Acceptable attribute: %d\n", drive->devicename, returnvalue); if (currenttemp){ if ( (currenttemp != drive->Temperature) && ( drive->Temperature) ) - printout(LOG_INFO, "Device: %s, Temperature changed %d degrees to %d degress since last reading\n", + printout(LOG_INFO, "Device: %s, Temperature changed %d degrees to %d degrees since last reading\n", drive->devicename, (int) (currenttemp - drive->Temperature), (unsigned int) currenttemp ); drive->Temperature = currenttemp; @@ -264,7 +264,7 @@ char copyleftstring[]= "is free software, and you are welcome to redistribute it\n" "under the terms of the GNU General Public License Version 2.\n" "See http://www.gnu.org for further details.\n\n" -"CVS Version ID $Id: smartd.c,v 1.3 2002/10/10 13:21:17 ballen4705 Exp $\n"; +"CVS Version ID $Id: smartd.c,v 1.4 2002/10/11 00:38:22 ballen4705 Exp $\n"; /* Main Program */ diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp index c4ed1c744..f1255ac57 100644 --- a/sm5/smartd.cpp +++ b/sm5/smartd.cpp @@ -1,4 +1,4 @@ -// $Id: smartd.cpp,v 1.3 2002/10/10 13:21:17 ballen4705 Exp $ +// $Id: smartd.cpp,v 1.4 2002/10/11 00:38:22 ballen4705 Exp $ /* * smartd.c * @@ -118,7 +118,7 @@ void atadevicescan ( atadevices_t *devices){ // This function is hard to read and ought to be rewritten // A couple of obvious questions -- why isn't fd always closed if not used? -// Why in the world is thea four-byte integer cast to a pointer to an eight-byte object?? +// Why in the world is the four-byte integer cast to a pointer to an eight-byte object?? void scsidevicescan ( scsidevices_t *devices){ int i, fd, smartsupport; unsigned char tBuf[4096]; @@ -231,11 +231,11 @@ int scsiCheckDevice( scsidevices_t *drive) printout(LOG_CRIT, "Device: %s, S.M.A.R.T. Failure: (%02x) %s\n", drive->devicename, returnvalue, scsiSmartGetSenseCode( returnvalue) ); else - printout(LOG_INFO,"Device: %s, Okay attribute: %d\n", drive->devicename, returnvalue); + printout(LOG_INFO,"Device: %s, Acceptable attribute: %d\n", drive->devicename, returnvalue); if (currenttemp){ if ( (currenttemp != drive->Temperature) && ( drive->Temperature) ) - printout(LOG_INFO, "Device: %s, Temperature changed %d degrees to %d degress since last reading\n", + printout(LOG_INFO, "Device: %s, Temperature changed %d degrees to %d degrees since last reading\n", drive->devicename, (int) (currenttemp - drive->Temperature), (unsigned int) currenttemp ); drive->Temperature = currenttemp; @@ -264,7 +264,7 @@ char copyleftstring[]= "is free software, and you are welcome to redistribute it\n" "under the terms of the GNU General Public License Version 2.\n" "See http://www.gnu.org for further details.\n\n" -"CVS Version ID $Id: smartd.cpp,v 1.3 2002/10/10 13:21:17 ballen4705 Exp $\n"; +"CVS Version ID $Id: smartd.cpp,v 1.4 2002/10/11 00:38:22 ballen4705 Exp $\n"; /* Main Program */ -- GitLab