aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzfs
diff options
context:
space:
mode:
authorAndrea Gelmini <[email protected]>2020-06-10 06:24:09 +0200
committerGitHub <[email protected]>2020-06-09 21:24:09 -0700
commitdd4bc569b9f73e8c2445bed90d82c92d98aada03 (patch)
tree64bacc1d16199ed350783f0b9a6490fe79ed6a70 /lib/libzfs
parent7bcb7f0840d1857370dd1f9ee0ad48f9b7939dfd (diff)
Fix typos
Correct various typos in the comments and tests. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Matthew Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Andrea Gelmini <[email protected]> Closes #10423
Diffstat (limited to 'lib/libzfs')
-rw-r--r--lib/libzfs/libzfs_crypto.c2
-rw-r--r--lib/libzfs/os/freebsd/libzfs_compat.c2
-rw-r--r--lib/libzfs/os/freebsd/libzfs_fsshare.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/libzfs/libzfs_crypto.c b/lib/libzfs/libzfs_crypto.c
index c83c213e3..1a2ee638a 100644
--- a/lib/libzfs/libzfs_crypto.c
+++ b/lib/libzfs/libzfs_crypto.c
@@ -326,7 +326,7 @@ libzfs_getpassphrase(zfs_keyformat_t keyformat, boolean_t is_reenter,
*reslen = bytes;
out:
- /* reset the teminal */
+ /* reset the terminal */
(void) tcsetattr(fileno(f), TCSAFLUSH, &old_term);
(void) sigaction(SIGINT, &osigint, NULL);
(void) sigaction(SIGTSTP, &osigtstp, NULL);
diff --git a/lib/libzfs/os/freebsd/libzfs_compat.c b/lib/libzfs/os/freebsd/libzfs_compat.c
index 3cb844ddb..3344d0e3d 100644
--- a/lib/libzfs/os/freebsd/libzfs_compat.c
+++ b/lib/libzfs/os/freebsd/libzfs_compat.c
@@ -1,5 +1,5 @@
/*
- * CDDL HEADER SART
+ * CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
diff --git a/lib/libzfs/os/freebsd/libzfs_fsshare.c b/lib/libzfs/os/freebsd/libzfs_fsshare.c
index 0fd75bf2c..9074c33e0 100644
--- a/lib/libzfs/os/freebsd/libzfs_fsshare.c
+++ b/lib/libzfs/os/freebsd/libzfs_fsshare.c
@@ -201,7 +201,7 @@ restart_mountd(void)
/* Cannot open pidfile for some reason. */
return;
}
- /* We have mountd(8) PID in mountdpid varible. */
+ /* We have mountd(8) PID in mountdpid variable. */
kill(mountdpid, SIGHUP);
}
@@ -342,7 +342,7 @@ fsshare_main(const char *file, const char *mountpoint, const char *shareopts,
error = 0;
}
- /* Place big, fat warning at the begining of the file. */
+ /* Place big, fat warning at the beginning of the file. */
fprintf(newfd, "%s", FILE_HEADER);
while (oldfd != NULL && (line = zgetline(oldfd, mountpoint)) != NULL)
fprintf(newfd, "%s\n", line);