From 6880e0d9967e728e9e6bd2eebe4291e8cc06c957 Mon Sep 17 00:00:00 2001
From: Morris Jette <jette@schedmd.com>
Date: Thu, 27 Oct 2011 11:12:12 -0700
Subject: [PATCH] spelling errors and manual pages correction

This patch contains corrections for spelling errors in the code and
improvements for some man pages. Patch from Gennaro Oliva.
---
 doc/man/man1/scontrol.1                           |  2 +-
 doc/man/man1/sinfo.1                              |  2 +-
 doc/man/man1/squeue.1                             |  2 +-
 doc/man/man5/cgroup.conf.5                        | 10 +++++-----
 src/common/xcgroup.c                              |  2 +-
 src/plugins/select/bluegene/bg_job_place.c        |  2 +-
 src/plugins/select/bluegene/bg_record_functions.c |  2 +-
 src/sbatch/opt.c                                  |  4 ++--
 src/scancel/opt.c                                 |  2 +-
 src/scontrol/scontrol.c                           |  6 +++---
 src/sinfo/opts.c                                  |  4 ++--
 src/smap/opts.c                                   |  2 +-
 src/sprio/opts.c                                  |  4 ++--
 src/squeue/opts.c                                 |  4 ++--
 src/sshare/sshare.c                               |  2 +-
 src/strigger/opts.c                               |  2 +-
 16 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/doc/man/man1/scontrol.1 b/doc/man/man1/scontrol.1
index f84c64e4c67..f01afdf917c 100644
--- a/doc/man/man1/scontrol.1
+++ b/doc/man/man1/scontrol.1
@@ -1202,7 +1202,7 @@ The location of the SLURM configuration file.
 Specify the format used to report time stamps. A value of \fIstandard\fR, the
 default value, generates output in the form "year-month-dateThour:minute:second".
 A value of \fIrelative\fR returns only "hour:minute:second" if the current day.
-For other dates in the current year it prints the "hour:minute" preceeded by
+For other dates in the current year it prints the "hour:minute" preceded by
 "Tomorr" (tomorrow), "Ystday" (yesterday), the name of the day for the coming
 week (e.g. "Mon", "Tue", etc.), otherwise the date (e.g. "25 Apr").
 For other years it returns a date month and year without a time (e.g.
diff --git a/doc/man/man1/sinfo.1 b/doc/man/man1/sinfo.1
index d07b4303e5e..d5208999dc0 100644
--- a/doc/man/man1/sinfo.1
+++ b/doc/man/man1/sinfo.1
@@ -491,7 +491,7 @@ The location of the SLURM configuration file.
 Specify the format used to report time stamps. A value of \fIstandard\fR, the
 default value, generates output in the form "year-month-dateThour:minute:second".
 A value of \fIrelative\fR returns only "hour:minute:second" if the current day.
-For other dates in the current year it prints the "hour:minute" preceeded by
+For other dates in the current year it prints the "hour:minute" preceded by
 "Tomorr" (tomorrow), "Ystday" (yesterday), the name of the day for the coming
 week (e.g. "Mon", "Tue", etc.), otherwise the date (e.g. "25 Apr").
 For other years it returns a date month and year without a time (e.g.
diff --git a/doc/man/man1/squeue.1 b/doc/man/man1/squeue.1
index f2e9c888aa4..b2382f87e1c 100644
--- a/doc/man/man1/squeue.1
+++ b/doc/man/man1/squeue.1
@@ -522,7 +522,7 @@ The location of the SLURM configuration file.
 Specify the format used to report time stamps. A value of \fIstandard\fR, the
 default value, generates output in the form "year-month-dateThour:minute:second".
 A value of \fIrelative\fR returns only "hour:minute:second" if the current day.
-For other dates in the current year it prints the "hour:minute" preceeded by
+For other dates in the current year it prints the "hour:minute" preceded by
 "Tomorr" (tomorrow), "Ystday" (yesterday), the name of the day for the coming
 week (e.g. "Mon", "Tue", etc.), otherwise the date (e.g. "25 Apr").
 For other years it returns a date month and year without a time (e.g.
diff --git a/doc/man/man5/cgroup.conf.5 b/doc/man/man5/cgroup.conf.5
index 5b647cfc7f9..81c70888f98 100644
--- a/doc/man/man5/cgroup.conf.5
+++ b/doc/man/man5/cgroup.conf.5
@@ -28,7 +28,7 @@ of Slurm cgroup plugins.
 .TP
 \fBCgroupMountpoint\fR=\fIPATH\fR
 Specify the \fIPATH\fR under which cgroups should be mounted. This
-should be a writeable directory which will contain cgroups mounted
+should be a writable directory which will contain cgroups mounted
 one per subsystem. The default \fIPATH\fR is /cgroup.
 
 .TP
@@ -220,7 +220,7 @@ links to a common release agent script, as shown in the example below:
 CgroupReleaseAgentDir="/etc/slurm/cgroup"
 .br
 
-[sulu] (slurm) etc> ls -al /etc/slurm/cgroup
+[sulu] (slurm) etc> ls \-al /etc/slurm/cgroup
 .br
 total 12
 .br
@@ -228,7 +228,7 @@ drwxr-xr-x 2 root root 4096 2010-04-23 14:55 .
 .br
 drwxr-xr-x 4 root root 4096 2010-07-22 14:48 ..
 .br
--rwxrwxrwx 1 root root  234 2010-04-23 14:52 release_common
+\-rwxrwxrwx 1 root root  234 2010-04-23 14:52 release_common
 .br
 lrwxrwxrwx 1 root root   32 2010-04-23 11:04 release_cpuset -> /etc/slurm/cgroup/release_common
 .br
@@ -249,11 +249,11 @@ rmcg=${base_path}/${subsystem}$@
 .br
 uidcg=${rmcg%/job*}
 .br
-if [[ -d ${base_path}/${subsystem} ]]
+if [[ \-d ${base_path}/${subsystem} ]]
 .br
 then
 .br
-     flock -x ${uidcg} -c "rmdir ${rmcg}"
+     flock \-x ${uidcg} \-c "rmdir ${rmcg}"
 .br
 fi
 .br
diff --git a/src/common/xcgroup.c b/src/common/xcgroup.c
index 3da09bda6b2..568696fc555 100644
--- a/src/common/xcgroup.c
+++ b/src/common/xcgroup.c
@@ -591,7 +591,7 @@ int xcgroup_set_params(xcgroup_t* cg, char* parameters)
 				       p, value, cpath);
 		}
 		else
-			debug2("bad paramters format for entry '%s'", p);
+			debug2("bad parameters format for entry '%s'", p);
 	next_loop:
 		p = next;
 	}
diff --git a/src/plugins/select/bluegene/bg_job_place.c b/src/plugins/select/bluegene/bg_job_place.c
index 3f463eb6fba..74d0b92b4b5 100644
--- a/src/plugins/select/bluegene/bg_job_place.c
+++ b/src/plugins/select/bluegene/bg_job_place.c
@@ -1122,7 +1122,7 @@ static int _find_best_block_match(List block_list,
 			list_iterator_destroy(itr);
 
 			/* Block list is already in the correct order,
-			   earliest avaliable first,
+			   earliest available first,
 			   so the job list will also be. No need to
 			   sort. */
 			while (1) {
diff --git a/src/plugins/select/bluegene/bg_record_functions.c b/src/plugins/select/bluegene/bg_record_functions.c
index aecd6d9143f..64b104507db 100644
--- a/src/plugins/select/bluegene/bg_record_functions.c
+++ b/src/plugins/select/bluegene/bg_record_functions.c
@@ -474,7 +474,7 @@ extern int bg_record_cmpf_inc(bg_record_t* rec_a, bg_record_t* rec_b)
 }
 
 /*
- * Comparator used for sorting blocks from earliest avaliable to lastest
+ * Comparator used for sorting blocks from earliest available to lastest
  *
  * returns: -1: rec_a < rec_b   0: rec_a == rec_b   1: rec_a > rec_b
  *
diff --git a/src/sbatch/opt.c b/src/sbatch/opt.c
index 2d8408c8652..02775047a4a 100644
--- a/src/sbatch/opt.c
+++ b/src/sbatch/opt.c
@@ -641,7 +641,7 @@ _process_env_var(env_vars_t *e, const char *val)
 			error("'%s' can't be reached now, "
 			      "or it is an invalid entry for "
 			      "--cluster.  Use 'sacctmgr --list "
-			      "cluster' to see avaliable clusters.",
+			      "cluster' to see available clusters.",
 			      optarg);
 			exit(1);
 		}
@@ -1242,7 +1242,7 @@ static void _set_options(int argc, char **argv)
 				error("'%s' can't be reached now, "
 				      "or it is an invalid entry for "
 				      "--cluster.  Use 'sacctmgr --list "
-				      "cluster' to see avaliable clusters.",
+				      "cluster' to see available clusters.",
 				      optarg);
 				exit(1);
 			}
diff --git a/src/scancel/opt.c b/src/scancel/opt.c
index 02005eb17e4..445e9f09957 100644
--- a/src/scancel/opt.c
+++ b/src/scancel/opt.c
@@ -372,7 +372,7 @@ static void _opt_args(int argc, char **argv)
 				error("'%s' can't be reached now, "
 				      "or it is an invalid entry for "
 				      "--cluster.  Use 'sacctmgr --list "
-				      "cluster' to see avaliable clusters.",
+				      "cluster' to see available clusters.",
 				      optarg);
 				exit(1);
 			}
diff --git a/src/scontrol/scontrol.c b/src/scontrol/scontrol.c
index 8bd3764b707..3f207846d67 100644
--- a/src/scontrol/scontrol.c
+++ b/src/scontrol/scontrol.c
@@ -124,7 +124,7 @@ main (int argc, char *argv[])
 			error("'%s' can't be reached now, "
 			      "or it is an invalid entry for "
 			      "SLURM_CLUSTERS.  Use 'sacctmgr --list "
-			      "cluster' to see avaliable clusters.",
+			      "cluster' to see available clusters.",
 			      env_val);
 			exit(1);
 		}
@@ -163,7 +163,7 @@ main (int argc, char *argv[])
 				error("'%s' can't be reached now, "
 				      "or it is an invalid entry for "
 				      "--cluster.  Use 'sacctmgr --list "
-				      "cluster' to see avaliable clusters.",
+				      "cluster' to see available clusters.",
 				      optarg);
 				exit(1);
 			}
@@ -606,7 +606,7 @@ _process_command (int argc, char *argv[])
 				error("'%s' can't be reached now, "
 				      "or it is an invalid entry for "
 				      "--cluster.  Use 'sacctmgr --list "
-				      "cluster' to see avaliable clusters.",
+				      "cluster' to see available clusters.",
 				      optarg);
 				exit(1);
 			}
diff --git a/src/sinfo/opts.c b/src/sinfo/opts.c
index 9745c9c4c03..b24810efcea 100644
--- a/src/sinfo/opts.c
+++ b/src/sinfo/opts.c
@@ -129,7 +129,7 @@ extern void parse_command_line(int argc, char *argv[])
 			error("'%s' can't be reached now, "
 			      "or it is an invalid entry for "
 			      "SLURM_CLUSTERS.  Use 'sacctmgr --list "
-			      "cluster' to see avaliable clusters.",
+			      "cluster' to see available clusters.",
 			      env_val);
 			exit(1);
 		}
@@ -187,7 +187,7 @@ extern void parse_command_line(int argc, char *argv[])
 				error("'%s' can't be reached now, "
 				      "or it is an invalid entry for "
 				      "--cluster.  Use 'sacctmgr --list "
-				      "cluster' to see avaliable clusters.",
+				      "cluster' to see available clusters.",
 				      optarg);
 				exit(1);
 			}
diff --git a/src/smap/opts.c b/src/smap/opts.c
index 21d04e85aad..fb86a4f4142 100644
--- a/src/smap/opts.c
+++ b/src/smap/opts.c
@@ -139,7 +139,7 @@ extern void parse_command_line(int argc, char *argv[])
 				error("'%s' can't be reached now, "
 				      "or it is an invalid entry for "
 				      "--cluster.  Use 'sacctmgr --list "
-				      "cluster' to see avaliable clusters.",
+				      "cluster' to see available clusters.",
 				      optarg);
 				exit(1);
 			}
diff --git a/src/sprio/opts.c b/src/sprio/opts.c
index 014a3dae444..b5afc0a3924 100644
--- a/src/sprio/opts.c
+++ b/src/sprio/opts.c
@@ -85,7 +85,7 @@ static void _opt_env(void)
 			error("'%s' can't be reached now, "
 			      "or it is an invalid entry for "
 			      "SLURM_CLUSTERS.  Use 'sacctmgr --list "
-			      "cluster' to see avaliable clusters.",
+			      "cluster' to see available clusters.",
 			      env_val);
 			exit(1);
 		}
@@ -149,7 +149,7 @@ parse_command_line( int argc, char* argv[] )
 				error("'%s' can't be reached now, "
 				      "or it is an invalid entry for "
 				      "--cluster.  Use 'sacctmgr --list "
-				      "cluster' to see avaliable clusters.",
+				      "cluster' to see available clusters.",
 				      optarg);
 				exit(1);
 			}
diff --git a/src/squeue/opts.c b/src/squeue/opts.c
index e464bfcceda..2cf9326453e 100644
--- a/src/squeue/opts.c
+++ b/src/squeue/opts.c
@@ -134,7 +134,7 @@ parse_command_line( int argc, char* argv[] )
 			error("'%s' can't be reached now, "
 			      "or it is an invalid entry for "
 			      "SLURM_CLUSTERS.  Use 'sacctmgr --list "
-			      "cluster' to see avaliable clusters.",
+			      "cluster' to see available clusters.",
 			      env_val);
 			exit(1);
 		}
@@ -189,7 +189,7 @@ parse_command_line( int argc, char* argv[] )
 				error("'%s' can't be reached now, "
 				      "or it is an invalid entry for "
 				      "--cluster.  Use 'sacctmgr --list "
-				      "cluster' to see avaliable clusters.",
+				      "cluster' to see available clusters.",
 				      optarg);
 				exit(1);
 			}
diff --git a/src/sshare/sshare.c b/src/sshare/sshare.c
index 60073a7a595..a917b3ca61c 100644
--- a/src/sshare/sshare.c
+++ b/src/sshare/sshare.c
@@ -128,7 +128,7 @@ main (int argc, char *argv[])
 				error("'%s' can't be reached now, "
 				      "or it is an invalid entry for "
 				      "--cluster.  Use 'sacctmgr --list "
-				      "cluster' to see avaliable clusters.",
+				      "cluster' to see available clusters.",
 				      optarg);
 				exit(1);
 			}
diff --git a/src/strigger/opts.c b/src/strigger/opts.c
index eda412daea1..fb105e65c13 100644
--- a/src/strigger/opts.c
+++ b/src/strigger/opts.c
@@ -218,7 +218,7 @@ extern void parse_command_line(int argc, char *argv[])
 				error("'%s' can't be reached now, "
 				      "or it is an invalid entry for "
 				      "--cluster.  Use 'sacctmgr --list "
-				      "cluster' to see avaliable clusters.",
+				      "cluster' to see available clusters.",
 				      optarg);
 				exit(1);
 			}
-- 
GitLab