diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2018-07-16 17:03:17 +0300 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-07-22 14:40:16 +0000 |
commit | 621138ce763eda8270d0a4f6d7209fd50ada8787 (patch) | |
tree | 7299759993f6e9f7f34dad95fc8d8cd6ffc1b2fd /tests/basic/gfapi | |
parent | c0e76377d0fc47aa66f35ea70a4793731ebbd40c (diff) |
All: run codespell on the code and fix issues.
Please review, it's not always just the comments that were fixed.
I've had to revert of course all calls to creat() that were changed
to create() ...
Only compile-tested!
Change-Id: I7d02e82d9766e272a7fd9cc68e51901d69e5aab5
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'tests/basic/gfapi')
-rw-r--r-- | tests/basic/gfapi/mandatory-lock-optimal.c | 2 | ||||
-rw-r--r-- | tests/basic/gfapi/upcall-cache-invalidate.c | 4 | ||||
-rw-r--r-- | tests/basic/gfapi/upcall-register-api.c | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/basic/gfapi/mandatory-lock-optimal.c b/tests/basic/gfapi/mandatory-lock-optimal.c index 9fb5ad657b0..4142258c06d 100644 --- a/tests/basic/gfapi/mandatory-lock-optimal.c +++ b/tests/basic/gfapi/mandatory-lock-optimal.c @@ -1,6 +1,6 @@ /* Pre-requisites:- * - * 1. Make sure that peformance translators are switched off while running this test. + * 1. Make sure that performance translators are switched off while running this test. * 2. Perform the following volume set operation: * # gluster volume set <VOLNAME> locks.mandatory-locking optimal * 3. For installation under non-standard paths, export LD_LIBRARY_PATH to diff --git a/tests/basic/gfapi/upcall-cache-invalidate.c b/tests/basic/gfapi/upcall-cache-invalidate.c index d1b421dff18..2014bb9dccf 100644 --- a/tests/basic/gfapi/upcall-cache-invalidate.c +++ b/tests/basic/gfapi/upcall-cache-invalidate.c @@ -123,7 +123,7 @@ main (int argc, char *argv[]) LOG_ERR ("glfs_write", ret); } else { fprintf (stderr, - "glfs_write suceeded\n"); + "glfs_write succeeded\n"); } free(writebuf); } else { @@ -175,7 +175,7 @@ main (int argc, char *argv[]) reason, object, flags, expire); } else { fprintf (stderr, - "Didnt receive upcall notify event"); + "Didn't receive upcall notify event"); ret = -1; goto err; } diff --git a/tests/basic/gfapi/upcall-register-api.c b/tests/basic/gfapi/upcall-register-api.c index cabd8be4f31..994069c0446 100644 --- a/tests/basic/gfapi/upcall-register-api.c +++ b/tests/basic/gfapi/upcall-register-api.c @@ -178,7 +178,7 @@ main (int argc, char *argv[]) ret = glfs_init (fs); LOG_ERR("glfs_init", ret); - /* Intialize fs2 */ + /* Initialize fs2 */ fs2 = glfs_new (volname); if (!fs2) { fprintf (stderr, "glfs_new fs2: returned NULL\n"); @@ -199,7 +199,7 @@ main (int argc, char *argv[]) /* Check if the return mask contains the event */ if (!(ret & GLFS_EVENT_INODE_INVALIDATE)) { - fprintf (stderr, "glfs_upcall_register return doesnt contain" + fprintf (stderr, "glfs_upcall_register return doesn't contain" " upcall event\n"); return -1; } @@ -208,7 +208,7 @@ main (int argc, char *argv[]) /* Check if the return mask contains the event */ if ((ret < 0) || !(ret & GLFS_EVENT_INODE_INVALIDATE)) { - fprintf (stderr, "glfs_upcall_register return doesnt contain" + fprintf (stderr, "glfs_upcall_register return doesn't contain" " upcall event\n"); return -1; } @@ -233,7 +233,7 @@ main (int argc, char *argv[]) /* Check if the return mask contains the event */ if ((ret < 0) || !(ret & GLFS_EVENT_INODE_INVALIDATE)) { - fprintf (stderr, "glfs_upcall_register return doesnt contain" + fprintf (stderr, "glfs_upcall_register return doesn't contain" " upcall event\n"); return -1; } @@ -242,7 +242,7 @@ main (int argc, char *argv[]) /* Check if the return mask contains the event */ if ((ret < 0) || !(ret & GLFS_EVENT_INODE_INVALIDATE)) { - fprintf (stderr, "glfs_upcall_register return doesnt contain" + fprintf (stderr, "glfs_upcall_register return doesn't contain" " upcall event\n"); return -1; } |