From cb781b3e1d7bc9a1669c0e9cc2aa14217f76d3de Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Fri, 13 Sep 2024 18:33:45 +0200 Subject: [PATCH] cleanup: fix typos Typos found with codespell. Signed-off-by: Tobias Stoeckmann --- daemons/lvmdbusd/main.py | 2 +- lib/commands/toolcontext.h | 2 +- lib/log/log.c | 2 +- lib/notify/lvmnotify.c | 2 +- test/lib/idm_inject_failure.c | 4 ++-- test/shell/snapshot-usage-exa.sh | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/daemons/lvmdbusd/main.py b/daemons/lvmdbusd/main.py index ee061246c..c9821e07e 100644 --- a/daemons/lvmdbusd/main.py +++ b/daemons/lvmdbusd/main.py @@ -133,7 +133,7 @@ def process_args(): def running_under_systemd(): """" - Checks to see if we are running under systemd, by checking damon fd 0, 1 + Checks to see if we are running under systemd, by checking daemon fd 0, 1 systemd sets stdin to /dev/null and 1 & 2 are a socket """ base = "/proc/self/fd" diff --git a/lib/commands/toolcontext.h b/lib/commands/toolcontext.h index b405bbf00..b12f5c37b 100644 --- a/lib/commands/toolcontext.h +++ b/lib/commands/toolcontext.h @@ -271,7 +271,7 @@ struct cmd_context { /* * Buffers. */ - char display_buffer[NAME_LEN * 10]; /* ring buffer for upto 10 longest vg/lv names */ + char display_buffer[NAME_LEN * 10]; /* ring buffer for up to 10 longest vg/lv names */ unsigned display_lvname_idx; /* index to ring buffer */ char *linebuffer; diff --git a/lib/log/log.c b/lib/log/log.c index e4734737a..920e480d5 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -258,7 +258,7 @@ static int _get_pid_starttime(int *pid, unsigned long long *starttime) /* * Support envvar LVM_LOG_FILE_EPOCH and allow to attach - * extra keyword (consist of upto 32 alpha chars) to + * extra keyword (consist of up to 32 alpha chars) to * opened log file. After this 'epoch' word pid and starttime * (in kernel units, read from /proc/self/stat) * is automatically attached. diff --git a/lib/notify/lvmnotify.c b/lib/notify/lvmnotify.c index 294a8494d..01edcfe32 100644 --- a/lib/notify/lvmnotify.c +++ b/lib/notify/lvmnotify.c @@ -109,7 +109,7 @@ void lvmnotify_send(struct cmd_context *cmd) /* If lvmdbusd isn't running, don't notify as you will start it as it will auto activate */ if (!lvmdbusd_running()) { - log_debug_dbus("dbus damon not running, not notifying"); + log_debug_dbus("dbus daemon not running, not notifying"); return; } diff --git a/test/lib/idm_inject_failure.c b/test/lib/idm_inject_failure.c index 4998b585a..4102822f1 100644 --- a/test/lib/idm_inject_failure.c +++ b/test/lib/idm_inject_failure.c @@ -24,7 +24,7 @@ int main(int argc, char *argv[]) { - int pecent = atoi(argv[1]); + int percent = atoi(argv[1]); int ret, s; ret = ilm_connect(&s); @@ -35,7 +35,7 @@ int main(int argc, char *argv[]) exit(-1); } - ret = ilm_inject_fault(s, pecent); + ret = ilm_inject_fault(s, percent); if (ret == 0) { printf("ilm_inject_fault (100): SUCCESS\n"); } else { diff --git a/test/shell/snapshot-usage-exa.sh b/test/shell/snapshot-usage-exa.sh index 475960df7..46b66d69b 100644 --- a/test/shell/snapshot-usage-exa.sh +++ b/test/shell/snapshot-usage-exa.sh @@ -10,7 +10,7 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# Check very large device size (upto 15Exa bytes) +# Check very large device size (up to 15Exa bytes) # this needs 64bit arch SKIP_WITH_LVMLOCKD=1