Skip to content
Snippets Groups Projects
Commit c4e5e245 authored by pjwilliams's avatar pjwilliams
Browse files

Renamed smartd option -X to -d

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@401 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent a6a2d99d
No related branches found
No related tags found
No related merge requests found
CHANGELOG for smartmontools CHANGELOG for smartmontools
$Id: CHANGELOG,v 1.76 2003/01/03 07:00:26 ballen4705 Exp $ $Id: CHANGELOG,v 1.77 2003/01/03 12:23:40 pjwilliams Exp $
Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net> Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
...@@ -38,6 +38,8 @@ CURRENT RELEASE (see VERSION file in this directory): ...@@ -38,6 +38,8 @@ CURRENT RELEASE (see VERSION file in this directory):
smartmontools-5.1.1 smartmontools-5.1.1
[PW] Renamed smartd option -X to -d
START OF SMARTMONTOOLS 5.1 series START OF SMARTMONTOOLS 5.1 series
smartmontools-5.0.50 smartmontools-5.0.50
......
...@@ -234,7 +234,7 @@ old to new smartd.conf directives: ...@@ -234,7 +234,7 @@ old to new smartd.conf directives:
\ Line continuation \ \ Line continuation \
------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------
Changes to smartd options (in progress): Changes to smartd options:
---------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------
5.0 short 5.0 long 5.1 short 5.1 long 5.0 short 5.0 long 5.1 short 5.1 long
......
\# Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net> \# Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
\# \#
\# $Id: smartd.8,v 1.45 2003/01/03 06:38:58 ballen4705 Exp $ \# $Id: smartd.8,v 1.46 2003/01/03 12:23:40 pjwilliams Exp $
\# \#
\# This program is free software; you can redistribute it and/or modify it \# This program is free software; you can redistribute it and/or modify it
\# under the terms of the GNU General Public License as published by the Free \# under the terms of the GNU General Public License as published by the Free
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
\# Research Center), Jack Baskin School of Engineering, University of \# Research Center), Jack Baskin School of Engineering, University of
\# California, Santa Cruz. http://ssrc.soe.ucsc.edu/ \# California, Santa Cruz. http://ssrc.soe.ucsc.edu/
\# \#
.TH SMARTD 8 "$Date: 2003/01/03 06:38:58 $" "smartmontools-5.0" .TH SMARTD 8 "$Date: 2003/01/03 12:23:40 $" "smartmontools-5.0"
.SH NAME .SH NAME
smartd \- S.M.A.R.T. Daemon smartd \- S.M.A.R.T. Daemon
.SH SYNOPSIS .SH SYNOPSIS
...@@ -97,8 +97,8 @@ Long options are not supported on all systems. Use ...@@ -97,8 +97,8 @@ Long options are not supported on all systems. Use
.B 'smartd \-h' .B 'smartd \-h'
to see the available options. to see the available options.
.TP .TP
.B \-X, \-\-debug .B \-d, \-\-debug
eXamine: Runs Runs
.B smartd .B smartd
in "debug" mode. In this mode, it does not in "debug" mode. In this mode, it does not
.B fork .B fork
...@@ -666,4 +666,4 @@ Please let us know if there is an on\-line source for this document. ...@@ -666,4 +666,4 @@ Please let us know if there is an on\-line source for this document.
.SH .SH
CVS ID OF THIS PAGE: CVS ID OF THIS PAGE:
$Id: smartd.8,v 1.45 2003/01/03 06:38:58 ballen4705 Exp $ $Id: smartd.8,v 1.46 2003/01/03 12:23:40 pjwilliams Exp $
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
// CVS ID strings // CVS ID strings
extern const char *CVSid1, *CVSid2; extern const char *CVSid1, *CVSid2;
const char *CVSid6="$Id: smartd.c,v 1.90 2003/01/01 23:27:31 pjwilliams Exp $" const char *CVSid6="$Id: smartd.c,v 1.91 2003/01/03 12:23:41 pjwilliams Exp $"
CVSID1 CVSID2 CVSID3 CVSID4 CVSID7; CVSID1 CVSID2 CVSID3 CVSID4 CVSID7;
// global variable used for control of printing, passing arguments, etc. // global variable used for control of printing, passing arguments, etc.
...@@ -344,7 +344,7 @@ void Usage (void){ ...@@ -344,7 +344,7 @@ void Usage (void){
printout(LOG_INFO,"Usage: smartd [options]\n\n"); printout(LOG_INFO,"Usage: smartd [options]\n\n");
#ifdef HAVE_GETOPT_LONG #ifdef HAVE_GETOPT_LONG
printout(LOG_INFO,"Command Line Options:\n"); printout(LOG_INFO,"Command Line Options:\n");
printout(LOG_INFO," -X, --debug\n Start smartd in debug mode\n\n"); printout(LOG_INFO," -d, --debug\n Start smartd in debug mode\n\n");
printout(LOG_INFO," -i N, --interval=N\n"); printout(LOG_INFO," -i N, --interval=N\n");
printout(LOG_INFO," Set interval between disk checks to N seconds, where N >= 10\n\n"); printout(LOG_INFO," Set interval between disk checks to N seconds, where N >= 10\n\n");
printout(LOG_INFO," -V, --version, --license, --copyright\n"); printout(LOG_INFO," -V, --version, --license, --copyright\n");
...@@ -352,7 +352,7 @@ void Usage (void){ ...@@ -352,7 +352,7 @@ void Usage (void){
printout(LOG_INFO," -h, -?, --help, --usage\n Display this help and exit\n\n"); printout(LOG_INFO," -h, -?, --help, --usage\n Display this help and exit\n\n");
#else #else
printout(LOG_INFO,"Command Line Options:\n"); printout(LOG_INFO,"Command Line Options:\n");
printout(LOG_INFO," -X Start smartd in debug mode\n"); printout(LOG_INFO," -d Start smartd in debug mode\n");
printout(LOG_INFO," -i N Set interval between disk checks to N seconds, where N >= 10\n"); printout(LOG_INFO," -i N Set interval between disk checks to N seconds, where N >= 10\n");
printout(LOG_INFO," -V Print License, Copyright, and version information\n"); printout(LOG_INFO," -V Print License, Copyright, and version information\n");
printout(LOG_INFO," -h Display this help and exit\n"); printout(LOG_INFO," -h Display this help and exit\n");
...@@ -1411,11 +1411,11 @@ void ParseOpts(int argc, char **argv){ ...@@ -1411,11 +1411,11 @@ void ParseOpts(int argc, char **argv){
int optchar; int optchar;
char *tailptr; char *tailptr;
long lchecktime; long lchecktime;
const char *shortopts = "Xi:Vh?"; const char *shortopts = "di:Vh?";
#ifdef HAVE_GETOPT_LONG #ifdef HAVE_GETOPT_LONG
char *arg; char *arg;
struct option longopts[] = { struct option longopts[] = {
{ "debug", no_argument, 0, 'X' }, { "debug", no_argument, 0, 'd' },
{ "interval", required_argument, 0, 'i' }, { "interval", required_argument, 0, 'i' },
{ "version", no_argument, 0, 'V' }, { "version", no_argument, 0, 'V' },
{ "license", no_argument, 0, 'V' }, { "license", no_argument, 0, 'V' },
...@@ -1435,7 +1435,7 @@ void ParseOpts(int argc, char **argv){ ...@@ -1435,7 +1435,7 @@ void ParseOpts(int argc, char **argv){
while (-1 != (optchar = getopt(argc, argv, shortopts))){ while (-1 != (optchar = getopt(argc, argv, shortopts))){
#endif #endif
switch(optchar) { switch(optchar) {
case 'X': case 'd':
debugmode = TRUE; debugmode = TRUE;
break; break;
case 'i': case 'i':
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
// CVS ID strings // CVS ID strings
extern const char *CVSid1, *CVSid2; extern const char *CVSid1, *CVSid2;
const char *CVSid6="$Id: smartd.cpp,v 1.90 2003/01/01 23:27:31 pjwilliams Exp $" const char *CVSid6="$Id: smartd.cpp,v 1.91 2003/01/03 12:23:41 pjwilliams Exp $"
CVSID1 CVSID2 CVSID3 CVSID4 CVSID7; CVSID1 CVSID2 CVSID3 CVSID4 CVSID7;
// global variable used for control of printing, passing arguments, etc. // global variable used for control of printing, passing arguments, etc.
...@@ -344,7 +344,7 @@ void Usage (void){ ...@@ -344,7 +344,7 @@ void Usage (void){
printout(LOG_INFO,"Usage: smartd [options]\n\n"); printout(LOG_INFO,"Usage: smartd [options]\n\n");
#ifdef HAVE_GETOPT_LONG #ifdef HAVE_GETOPT_LONG
printout(LOG_INFO,"Command Line Options:\n"); printout(LOG_INFO,"Command Line Options:\n");
printout(LOG_INFO," -X, --debug\n Start smartd in debug mode\n\n"); printout(LOG_INFO," -d, --debug\n Start smartd in debug mode\n\n");
printout(LOG_INFO," -i N, --interval=N\n"); printout(LOG_INFO," -i N, --interval=N\n");
printout(LOG_INFO," Set interval between disk checks to N seconds, where N >= 10\n\n"); printout(LOG_INFO," Set interval between disk checks to N seconds, where N >= 10\n\n");
printout(LOG_INFO," -V, --version, --license, --copyright\n"); printout(LOG_INFO," -V, --version, --license, --copyright\n");
...@@ -352,7 +352,7 @@ void Usage (void){ ...@@ -352,7 +352,7 @@ void Usage (void){
printout(LOG_INFO," -h, -?, --help, --usage\n Display this help and exit\n\n"); printout(LOG_INFO," -h, -?, --help, --usage\n Display this help and exit\n\n");
#else #else
printout(LOG_INFO,"Command Line Options:\n"); printout(LOG_INFO,"Command Line Options:\n");
printout(LOG_INFO," -X Start smartd in debug mode\n"); printout(LOG_INFO," -d Start smartd in debug mode\n");
printout(LOG_INFO," -i N Set interval between disk checks to N seconds, where N >= 10\n"); printout(LOG_INFO," -i N Set interval between disk checks to N seconds, where N >= 10\n");
printout(LOG_INFO," -V Print License, Copyright, and version information\n"); printout(LOG_INFO," -V Print License, Copyright, and version information\n");
printout(LOG_INFO," -h Display this help and exit\n"); printout(LOG_INFO," -h Display this help and exit\n");
...@@ -1411,11 +1411,11 @@ void ParseOpts(int argc, char **argv){ ...@@ -1411,11 +1411,11 @@ void ParseOpts(int argc, char **argv){
int optchar; int optchar;
char *tailptr; char *tailptr;
long lchecktime; long lchecktime;
const char *shortopts = "Xi:Vh?"; const char *shortopts = "di:Vh?";
#ifdef HAVE_GETOPT_LONG #ifdef HAVE_GETOPT_LONG
char *arg; char *arg;
struct option longopts[] = { struct option longopts[] = {
{ "debug", no_argument, 0, 'X' }, { "debug", no_argument, 0, 'd' },
{ "interval", required_argument, 0, 'i' }, { "interval", required_argument, 0, 'i' },
{ "version", no_argument, 0, 'V' }, { "version", no_argument, 0, 'V' },
{ "license", no_argument, 0, 'V' }, { "license", no_argument, 0, 'V' },
...@@ -1435,7 +1435,7 @@ void ParseOpts(int argc, char **argv){ ...@@ -1435,7 +1435,7 @@ void ParseOpts(int argc, char **argv){
while (-1 != (optchar = getopt(argc, argv, shortopts))){ while (-1 != (optchar = getopt(argc, argv, shortopts))){
#endif #endif
switch(optchar) { switch(optchar) {
case 'X': case 'd':
debugmode = TRUE; debugmode = TRUE;
break; break;
case 'i': case 'i':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment