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 /xlators/storage/bd | |
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 'xlators/storage/bd')
-rw-r--r-- | xlators/storage/bd/src/bd-helper.c | 6 | ||||
-rw-r--r-- | xlators/storage/bd/src/bd.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/xlators/storage/bd/src/bd-helper.c b/xlators/storage/bd/src/bd-helper.c index 21e7bed9159..419df784585 100644 --- a/xlators/storage/bd/src/bd-helper.c +++ b/xlators/storage/bd/src/bd-helper.c @@ -74,7 +74,7 @@ bd_local_init (call_frame_t *frame, xlator_t *this) /* * VG are set with the tag in GF_XATTR_VOL_ID_KEY:<uuid> format. - * This function validates this tag agains volume-uuid. Also goes + * This function validates this tag against volume-uuid. Also goes * through LV list to find out if a thin-pool is configured or not. */ int bd_scan_vg (xlator_t *this, bd_priv_t *priv) @@ -128,7 +128,7 @@ int bd_scan_vg (xlator_t *this, bd_priv_t *priv) } check: - /* If there is no volume-id set in dict, we cant validate */ + /* If there is no volume-id set in dict, we can't validate */ tmp_data = dict_get (this->options, "volume-id"); if (!tmp_data) { op_ret = 0; @@ -295,7 +295,7 @@ bd_fd_ctx_get (xlator_t *this, fd_t *fd, bd_fd_t **bdfd) * Validates if LV exists for given inode or not. * Returns 0 if LV exists and size also matches. * If LV does not exist -1 returned - * If LV size mismatches, returnes 1 also lv_size is updated with actual + * If LV size mismatches, returns 1 also lv_size is updated with actual * size */ int diff --git a/xlators/storage/bd/src/bd.c b/xlators/storage/bd/src/bd.c index 57699ae0aac..e37bfeaf83b 100644 --- a/xlators/storage/bd/src/bd.c +++ b/xlators/storage/bd/src/bd.c @@ -678,7 +678,7 @@ bd_open (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags, posix: - /* open posix equivalant of this file, fd needed for fd related + /* open posix equivalent of this file, fd needed for fd related operations like fsetxattr, ftruncate etc */ STACK_WIND (frame, bd_open_cbk, FIRST_CHILD(this), FIRST_CHILD(this)->fops->open, loc, flags, fd, xdata); @@ -895,7 +895,7 @@ out: } /* - * Call back for removexattr after removing BD_XATTR incase of + * Call back for removexattr after removing BD_XATTR in case of * bd create failure */ int |