Skip to contentSkip to conversation

multipath-tools: fix misspellings

PATCH Applied Xose Vazquez Perez 2 participants 2 messages Nov 26, 2016 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: fix misspellings

Done with https://github.com/lucasdemarchi/codespell

multipath-tools/kpartx/dasd.c:263: formated ==> formatted multipath-tools/libmultipath/discovery.c:1808: unuseable ==> unusable multipath-tools/libmultipath/discovery.h:20: exerpt ==> excerpt multipath-tools/libmultipath/memory.c:150: formated ==> formatted multipath-tools/libmultipath/checkers/directio.c:84: Sucessfully ==> Successfully multipath-tools/libmultipath/prioritizers/hds.c:9: pathes ==> paths multipath-tools/libmultipath/prioritizers/hds.c:14: pathes ==> paths multipath-tools/libmultipath/prioritizers/ontap.c:119: Retuns ==> Returns multipath-tools/third-party/valgrind/valgrind.h:6828: arbitary ==> arbitrary multipath-tools/multipath/02_multipath:11: dynamicaly ==> dynamically multipath-tools/multipath/multipath.conf.5:793: remeber ==> remember multipath-tools/libmpathpersist/mpath_persist.h:15: lenght ==> length

-------8<-------
SUMMARY:

arbitary      1
dynamicaly    1
exerpt        1
formated      2
lenght        1
pathes        2
remeber       1
retuns        1
sucessfully   1
unuseable     1
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 kpartx/dasd.c                     | 2 +-
 libmpathpersist/mpath_persist.h   | 2 +-
 libmultipath/checkers/directio.c  | 2 +-
 libmultipath/discovery.c          | 2 +-
 libmultipath/discovery.h          | 2 +-
 libmultipath/memory.c             | 2 +-
 libmultipath/prioritizers/hds.c   | 4 ++--
 libmultipath/prioritizers/ontap.c | 2 +-
 multipath/02_multipath            | 2 +-
 multipath/multipath.conf.5        | 2 +-
 10 files changed, 11 insertions(+), 11 deletions(-)
kpartx/dasd.c +1 -1
index faf5e2e..1206e45 100644
@@ -261,7 +261,7 @@ read_dasd_pt(int fd, struct slice all, struct slice *sp, int ns)
 				fmt_size = sectors512(vlabel.formatted_blocks,
 						      blocksize);
 			} else if (!strcmp(info.type, "ECKD")) {
-				/* formated w/o large volume support */
+				/* formatted w/o large volume support */
 				fmt_size = geo.cylinders * geo.heads
 					* geo.sectors * (blocksize >> 9);
 			} else {
libmpathpersist/mpath_persist.h +1 -1
index fde0416..79de5b5 100644
@@ -13,7 +13,7 @@ extern "C" {
 #define MPATH_MAX_PARAM_LEN	8192
 
 #define MPATH_MX_TIDS		32	  /* Max number of transport ids"*/
-#define MPATH_MX_TID_LEN	256	  /* Max lenght of transport id */
+#define MPATH_MX_TID_LEN	256	  /* Max length of transport id */
 
 /* PRIN Service Actions */
 #define MPATH_PRIN_RKEY_SA	0x00	   /* READ KEYS SA*/
libmultipath/checkers/directio.c +1 -1
index eec12d5..ce60e4c 100644
@@ -82,7 +82,7 @@ int libcheck_init (struct checker * c)
 	ct->ptr = (unsigned char *) (((unsigned long)ct->buf + pgsize - 1) &
 		  (~(pgsize - 1)));
 
-	/* Sucessfully initialized, return the context. */
+	/* Successfully initialized, return the context. */
 	c->context = (void *) ct;
 	return 0;
 
libmultipath/discovery.c +1 -1
index aaa915c..0f912ba 100644
@@ -1806,7 +1806,7 @@ int pathinfo(struct path *pp, struct config *conf, int mask)
 				pp->state = PATH_DOWN;
 			if (pp->state == PATH_UP && !pp->size) {
 				condlog(3, "%s: device size is 0, "
-					"path unuseable", pp->dev);
+					"path unusable", pp->dev);
 				pp->state = PATH_GHOST;
 			}
 		} else {
libmultipath/discovery.h +1 -1
index 97e5a32..3039268 100644
@@ -18,7 +18,7 @@
 #endif
 
 /*
- * exerpt from sg_err.h
+ * excerpt from sg_err.h
  */
 #define SCSI_CHECK_CONDITION    0x2
 #define SCSI_COMMAND_TERMINATED 0x22
libmultipath/memory.c +1 -1
index 293a688..ff5a030 100644
@@ -148,7 +148,7 @@ dbg_strdup(char *str, char *file, char *function, int line)
 
 
 
-/* Display a buffer into a HEXA formated output */
+/* Display a buffer into a HEXA formatted output */
 static void
 dump_buffer(char *buff, int count)
 {
libmultipath/prioritizers/hds.c +2 -2
index d161e68..70fb5d1 100644
@@ -7,12 +7,12 @@
  * Prioritizer for Device Mapper Multipath and HDS Storage
  *
  * Hitachis Modular Storage contains two controllers for redundancy. The
- * Storage internal LUN (LDEV) will normally allocated via two pathes to the
+ * Storage internal LUN (LDEV) will normally allocated via two paths to the
  * server (one path per controller). For performance reasons should the server
  * access to a LDEV only via one controller. The other path to the other
  * controller is stand-by. It is also possible to allocate more as one path
  * for a LDEV per controller. Here is active/active access allowed. The other
- * pathes via the other controller are stand-by.
+ * paths via the other controller are stand-by.
  *
  * This prioritizer checks with inquiry command the represented LDEV and
  * Controller number and gives back a priority followed by this scheme:
libmultipath/prioritizers/ontap.c +1 -1
index 38495cd..ca06d6c 100644
@@ -117,7 +117,7 @@ out:
 }
 
 /*
- * Retuns:
+ * Returns:
  * -1: Unable to obtain proxy info
  *  0: Device _not_ proxy path
  *  1: Device _is_ proxy path
multipath/02_multipath +1 -1
index 523f0ef..de6e247 100755
@@ -9,7 +9,7 @@ cp /sbin/kpartx $INITRDDIR/sbin
 
 #
 # feed the dependencies too
-# scsi_id is dynamicaly linked, so store the libs too
+# scsi_id is dynamically linked, so store the libs too
 #
 cp /lib/udev/scsi_id $INITRDDIR/lib/udev/
 cp /bin/mountpoint $INITRDDIR/bin
multipath/multipath.conf.5 +1 -1
index 8f5447d..c272dd6 100644
@@ -791,7 +791,7 @@ a path has the same WWID as a multipath device that was previously created
 while find_multipaths was set (even if that multipath device doesn't currently
 exist).
 Whenever a multipath device is created with find_multipaths set, multipath will
-remeber the WWID of the device, so that it will automatically create the
+remember the WWID of the device, so that it will automatically create the
 device again, as soon as it sees a path with that WWID. This should allow most
 users to have multipath automatically choose the correct paths to make into
 multipath devices, without having to edit the blacklist.
Signature · 1 line
2.10.2
#1 lore raw

Applied, thanks.

Quoted 206 lines · Xose Vazquez Perez

Done with https://github.com/lucasdemarchi/codespell

multipath-tools/kpartx/dasd.c:263: formated ==> formatted multipath-tools/libmultipath/discovery.c:1808: unuseable ==> unusable multipath-tools/libmultipath/discovery.h:20: exerpt ==> excerpt multipath-tools/libmultipath/memory.c:150: formated ==> formatted multipath-tools/libmultipath/checkers/directio.c:84: Sucessfully ==> Successfully multipath-tools/libmultipath/prioritizers/hds.c:9: pathes ==> paths multipath-tools/libmultipath/prioritizers/hds.c:14: pathes ==> paths multipath-tools/libmultipath/prioritizers/ontap.c:119: Retuns ==> Returns multipath-tools/third-party/valgrind/valgrind.h:6828: arbitary ==> arbitrary
multipath-tools/multipath/02_multipath:11: dynamicaly ==> dynamically multipath-tools/multipath/multipath.conf.5:793: remeber ==> remember multipath-tools/libmpathpersist/mpath_persist.h:15: lenght ==> length

-------8<-------
SUMMARY:

arbitary      1
dynamicaly    1
exerpt        1
formated      2
lenght        1
pathes        2
remeber       1
retuns        1
sucessfully   1
unuseable     1
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 kpartx/dasd.c                     | 2 +-
 libmpathpersist/mpath_persist.h   | 2 +-
 libmultipath/checkers/directio.c  | 2 +-
 libmultipath/discovery.c          | 2 +-
 libmultipath/discovery.h          | 2 +-
 libmultipath/memory.c             | 2 +-
 libmultipath/prioritizers/hds.c   | 4 ++--
 libmultipath/prioritizers/ontap.c | 2 +-
 multipath/02_multipath            | 2 +-
 multipath/multipath.conf.5        | 2 +-
 10 files changed, 11 insertions(+), 11 deletions(-)
kpartx/dasd.c +1 -1
index faf5e2e..1206e45 100644
@@ -261,7 +261,7 @@ read_dasd_pt(int fd, struct slice all, struct slice
 *sp, int ns)
                                fmt_size = sectors512(vlabel.formatted_
 blocks,
                                                      blocksize);
                        } else if (!strcmp(info.type, "ECKD")) {
-                               /* formated w/o large volume support */
+                               /* formatted w/o large volume support */
                                fmt_size = geo.cylinders * geo.heads

* geo.sectors * (blocksize >> 9);
} else {

libmpathpersist/mpath_ renamed from libmpathpersist/mpath_persist.h +0 -0

persist.h
index fde0416..79de5b5 100644

libmpathpersist/mpath_persist.h +1 -1
@@ -13,7 +13,7 @@ extern "C" {
 #define MPATH_MAX_PARAM_LEN    8192
 
 #define MPATH_MX_TIDS          32        /* Max number of transport ids"*/
-#define MPATH_MX_TID_LEN       256       /* Max lenght of transport id */
+#define MPATH_MX_TID_LEN       256       /* Max length of transport id */
 
 /* PRIN Service Actions */
 #define MPATH_PRIN_RKEY_SA     0x00       /* READ KEYS SA*/
libmultipath/checkers/ renamed from libmultipath/checkers/directio.c +0 -0

directio.c
index eec12d5..ce60e4c 100644

libmultipath/checkers/directio.c +0 -0
@@ -82,7 +82,7 @@ int libcheck_init (struct checker * c)
        ct->ptr = (unsigned char *) (((unsigned long)ct->buf + pgsize - 1)

&

                  (~(pgsize - 1)));
libmultipath/checkers/directio.c +1 -1
-       /* Sucessfully initialized, return the context. */
+       /* Successfully initialized, return the context. */
        c->context = (void *) ct;
        return 0;
libmultipath/discovery.c +1 -1
index aaa915c..0f912ba 100644
@@ -1806,7 +1806,7 @@ int pathinfo(struct path *pp, struct config *conf,
 int mask)
                                pp->state = PATH_DOWN;
                        if (pp->state == PATH_UP && !pp->size) {
                                condlog(3, "%s: device size is 0, "
-                                       "path unuseable", pp->dev);
+                                       "path unusable", pp->dev);
                                pp->state = PATH_GHOST;
                        }
                } else {
libmultipath/discovery.h +1 -1
index 97e5a32..3039268 100644
@@ -18,7 +18,7 @@
 #endif
 
 /*
- * exerpt from sg_err.h
+ * excerpt from sg_err.h
  */
 #define SCSI_CHECK_CONDITION    0x2
 #define SCSI_COMMAND_TERMINATED 0x22
libmultipath/memory.c +1 -1
index 293a688..ff5a030 100644
@@ -148,7 +148,7 @@ dbg_strdup(char *str, char *file, char *function, int
 line)
 
 
 
-/* Display a buffer into a HEXA formated output */
+/* Display a buffer into a HEXA formatted output */
 static void
 dump_buffer(char *buff, int count)

{

libmultipath/prioritizers/ renamed from libmultipath/prioritizers/hds.c +0 -0

hds.c
index d161e68..70fb5d1 100644

libmultipath/prioritizers/hds.c +0 -1
@@ -7,12 +7,12 @@
  * Prioritizer for Device Mapper Multipath and HDS Storage
  *
  * Hitachis Modular Storage contains two controllers for redundancy. The
- * Storage internal LUN (LDEV) will normally allocated via two pathes to

the
+ * Storage internal LUN (LDEV) will normally allocated via two paths to the
* server (one path per controller). For performance reasons should the
server
* access to a LDEV only via one controller. The other path to the other
* controller is stand-by. It is also possible to allocate more as one
path
* for a LDEV per controller. Here is active/active access allowed. The
other
- * pathes via the other controller are stand-by.
+ * paths via the other controller are stand-by.
*
* This prioritizer checks with inquiry command the represented LDEV and
* Controller number and gives back a priority followed by this scheme:

libmultipath/prioritizers/ontap.c +1 -1
index 38495cd..ca06d6c 100644
@@ -117,7 +117,7 @@ out:
 }
 
 /*
- * Retuns:
+ * Returns:
  * -1: Unable to obtain proxy info
  *  0: Device _not_ proxy path
  *  1: Device _is_ proxy path
multipath/02_multipath +1 -1
index 523f0ef..de6e247 100755
@@ -9,7 +9,7 @@ cp /sbin/kpartx $INITRDDIR/sbin
 
 #
 # feed the dependencies too
-# scsi_id is dynamicaly linked, so store the libs too
+# scsi_id is dynamically linked, so store the libs too
 #
 cp /lib/udev/scsi_id $INITRDDIR/lib/udev/
 cp /bin/mountpoint $INITRDDIR/bin
multipath/multipath.conf.5 +0 -0
index 8f5447d..c272dd6 100644
@@ -791,7 +791,7 @@ a path has the same WWID as a multipath device that

was previously created
while find_multipaths was set (even if that multipath device doesn't
currently
exist).
Whenever a multipath device is created with find_multipaths set,
multipath will

multipath/multipath.conf.5 +1 -1
-remeber the WWID of the device, so that it will automatically create the
+remember the WWID of the device, so that it will automatically create the
 device again, as soon as it sees a path with that WWID. This should allow

most
users to have multipath automatically choose the correct paths to make
into
multipath devices, without having to edit the blacklist.
--
2.10.2