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 | |
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')
-rw-r--r-- | tests/basic/ec/ec-fast-fgetxattr.c | 2 | ||||
-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 | ||||
-rw-r--r-- | tests/basic/posix/zero-fill-enospace.c | 2 | ||||
-rw-r--r-- | tests/bugs/ec/bug-1161886.c | 2 | ||||
-rw-r--r-- | tests/bugs/shard/bug-shard-discard.c | 2 | ||||
-rw-r--r-- | tests/bugs/shard/bug-shard-zerofill.c | 2 | ||||
-rw-r--r-- | tests/bugs/shard/shard-fallocate.c | 2 | ||||
-rw-r--r-- | tests/features/glfs-lease.c | 4 | ||||
-rw-r--r-- | tests/utils/arequal-checksum.c | 4 | ||||
-rwxr-xr-x | tests/utils/getfattr.py | 2 | ||||
-rw-r--r-- | tests/utils/libcxattr.py | 2 |
13 files changed, 20 insertions, 20 deletions
diff --git a/tests/basic/ec/ec-fast-fgetxattr.c b/tests/basic/ec/ec-fast-fgetxattr.c index ddf5ae90290..ecdbcbe44a6 100644 --- a/tests/basic/ec/ec-fast-fgetxattr.c +++ b/tests/basic/ec/ec-fast-fgetxattr.c @@ -87,7 +87,7 @@ main (int argc, char *argv[]) ret = glfs_set_volfile_server (fs, "tcp", argv[1], 24007); if (ret != 0) { - fprintf (stderr, "glfs_set_volfile_server: retuned %d\n", ret); + fprintf (stderr, "glfs_set_volfile_server: returned %d\n", ret); goto out; } ret = glfs_set_logging (fs, "/tmp/ec-fgetxattr.log", 7); 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; } diff --git a/tests/basic/posix/zero-fill-enospace.c b/tests/basic/posix/zero-fill-enospace.c index b1aaa57c9ca..7c0d31128b3 100644 --- a/tests/basic/posix/zero-fill-enospace.c +++ b/tests/basic/posix/zero-fill-enospace.c @@ -23,7 +23,7 @@ main (int argc, char *argv[]) ret = glfs_set_volfile_server (fs, "tcp", argv[1], 24007); if (ret != 0) { - fprintf (stderr, "glfs_set_volfile_server: retuned %d\n", ret); + fprintf (stderr, "glfs_set_volfile_server: returned %d\n", ret); goto out; } ret = glfs_set_logging (fs, argv[4], 7); diff --git a/tests/bugs/ec/bug-1161886.c b/tests/bugs/ec/bug-1161886.c index e8093e48a7a..1faae831898 100644 --- a/tests/bugs/ec/bug-1161886.c +++ b/tests/bugs/ec/bug-1161886.c @@ -23,7 +23,7 @@ main (int argc, char *argv[]) ret = glfs_set_volfile_server (fs, "tcp", argv[1], 24007); if (ret != 0) { - fprintf (stderr, "glfs_set_volfile_server: retuned %d\n", ret); + fprintf (stderr, "glfs_set_volfile_server: returned %d\n", ret); goto out; } ret = glfs_set_logging (fs, "/dev/null", 7); diff --git a/tests/bugs/shard/bug-shard-discard.c b/tests/bugs/shard/bug-shard-discard.c index 645bacf7d83..b1268278fa5 100644 --- a/tests/bugs/shard/bug-shard-discard.c +++ b/tests/bugs/shard/bug-shard-discard.c @@ -25,7 +25,7 @@ main (int argc, char *argv[]) ret = glfs_set_volfile_server (fs, "tcp", argv[1], 24007); if (ret != 0) { - fprintf (stderr, "glfs_set_volfile_server: retuned %d\n", ret); + fprintf (stderr, "glfs_set_volfile_server: returned %d\n", ret); goto out; } diff --git a/tests/bugs/shard/bug-shard-zerofill.c b/tests/bugs/shard/bug-shard-zerofill.c index 838a656b3bb..c0525a58afc 100644 --- a/tests/bugs/shard/bug-shard-zerofill.c +++ b/tests/bugs/shard/bug-shard-zerofill.c @@ -22,7 +22,7 @@ main (int argc, char *argv[]) ret = glfs_set_volfile_server (fs, "tcp", argv[1], 24007); if (ret != 0) { - fprintf (stderr, "glfs_set_volfile_server: retuned %d\n", ret); + fprintf (stderr, "glfs_set_volfile_server: returned %d\n", ret); goto out; } ret = glfs_set_logging (fs, argv[4], 7); diff --git a/tests/bugs/shard/shard-fallocate.c b/tests/bugs/shard/shard-fallocate.c index e16620964c9..8745c0ece1d 100644 --- a/tests/bugs/shard/shard-fallocate.c +++ b/tests/bugs/shard/shard-fallocate.c @@ -61,7 +61,7 @@ main (int argc, char *argv[]) ret = glfs_set_volfile_server (fs, "tcp", argv[1], 24007); if (ret != 0) { - fprintf (stderr, "glfs_set_volfile_server: retuned %d\n", ret); + fprintf (stderr, "glfs_set_volfile_server: returned %d\n", ret); goto out; } diff --git a/tests/features/glfs-lease.c b/tests/features/glfs-lease.c index 1a375ecbeb3..535b3019a8c 100644 --- a/tests/features/glfs-lease.c +++ b/tests/features/glfs-lease.c @@ -199,7 +199,7 @@ do { do { \ if (ret != value) { \ fprintf (log_file, "\n Testcase %d failed, ret = %d, value=%d\n", test_case, ret, value); \ - goto error; /*test unsuccesfull*/ \ + goto error; /*test unsuccessful*/ \ } \ fprintf (log_file, "\n Testcase %d Succeeded\n", test_case); \ } while (0) \ @@ -210,7 +210,7 @@ recall_cbk (struct glfs_lease lease, void *data) int ret = -1; char ld[GLFS_LEASE_ID_SIZE] = ""; - fprintf (log_file, "\nRECALL recieved on lease_id:(%s)", lease.lease_id); + fprintf (log_file, "\nRECALL received on lease_id:(%s)", lease.lease_id); memcpy (ld, lease.lease_id, GLFS_LEASE_ID_SIZE); ret = unlk_write_lease ((glfs_fd_t *)data, ld); VERIFY_RESULT (500, ret, SHUD_PASS); diff --git a/tests/utils/arequal-checksum.c b/tests/utils/arequal-checksum.c index aede4f48adb..6ab68f38db8 100644 --- a/tests/utils/arequal-checksum.c +++ b/tests/utils/arequal-checksum.c @@ -31,7 +31,7 @@ /* * FTW_ACTIONRETVAL is a GNU libc extension. It is used here to skip - * hiearchies. On other systems we will still walk the tree, ignoring + * hierarchies. On other systems we will still walk the tree, ignoring * entries. */ #ifndef FTW_ACTIONRETVAL @@ -482,7 +482,7 @@ process_entry (const char *path, const struct stat *sb, This mainly helps in calculating the checksum of network filesystems (client-server), where the server might have some hidden directories - for managing the filesystem. So to calculate the sanity of filesytem + for managing the filesystem. So to calculate the sanity of filesystem one has to get the checksum of the client and then the export directory of server by telling arequal to ignore some of the directories which are not part of the namespace. diff --git a/tests/utils/getfattr.py b/tests/utils/getfattr.py index 7d1f7368e3e..b0dba822d64 100755 --- a/tests/utils/getfattr.py +++ b/tests/utils/getfattr.py @@ -65,7 +65,7 @@ if __name__ == '__main__': " them. Valid values of [en] are `text`, `hex`," " and `base64`. Values encoded as text strings are" " enclosed in double quotes (\"), while strings" - " encoded as hexidecimal and base64 are prefixed with" + " encoded as hexadecimal and base64 are prefixed with" " 0x and 0s, respectively.") parser.add_option("-m", action="store", dest="pattern", type="string", help="Only include attributes with names matching the" diff --git a/tests/utils/libcxattr.py b/tests/utils/libcxattr.py index 4e6e6c46df9..fd0b08378fc 100644 --- a/tests/utils/libcxattr.py +++ b/tests/utils/libcxattr.py @@ -15,7 +15,7 @@ from ctypes import CDLL, c_int, create_string_buffer class Xattr(object): - """singleton that wraps the extended attribues system + """singleton that wraps the extended attributes system interface for python using ctypes Just implement it to the degree we need it, in particular |