summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/syscall.c
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-07-16 17:03:17 +0300
committerAmar Tumballi <amarts@redhat.com>2018-07-22 14:40:16 +0000
commit621138ce763eda8270d0a4f6d7209fd50ada8787 (patch)
tree7299759993f6e9f7f34dad95fc8d8cd6ffc1b2fd /libglusterfs/src/syscall.c
parentc0e76377d0fc47aa66f35ea70a4793731ebbd40c (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 'libglusterfs/src/syscall.c')
-rw-r--r--libglusterfs/src/syscall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libglusterfs/src/syscall.c b/libglusterfs/src/syscall.c
index 2ffe08a4299..2d79d695b09 100644
--- a/libglusterfs/src/syscall.c
+++ b/libglusterfs/src/syscall.c
@@ -418,7 +418,7 @@ sys_statvfs (const char *path, struct statvfs *buf)
ret = statvfs (path, buf);
#ifdef __FreeBSD__
- /* FreeBSD doesn't return the expected vaule in buf->f_bsize. It
+ /* FreeBSD doesn't return the expected value in buf->f_bsize. It
* contains the optimal I/O size instead of the file system block
* size. Gluster expects that this field contains the block size.
*/
@@ -438,7 +438,7 @@ sys_fstatvfs (int fd, struct statvfs *buf)
ret = fstatvfs (fd, buf);
#ifdef __FreeBSD__
- /* FreeBSD doesn't return the expected vaule in buf->f_bsize. It
+ /* FreeBSD doesn't return the expected value in buf->f_bsize. It
* contains the optimal I/O size instead of the file system block
* size. Gluster expects this field to contain the block size.
*/
@@ -485,7 +485,7 @@ sys_fdatasync (int fd)
void
gf_add_prefix(const char *ns, const char *key, char **newkey)
{
- /* if we dont have any namespace, append USER NS */
+ /* if we don't have any namespace, append USER NS */
if (strncmp(key, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN) &&
strncmp(key, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN) &&
strncmp(key, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) &&