summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSami Kerola2019-01-14 23:40:34 +0100
committerKarel Zak2019-02-18 13:22:43 +0100
commit110260830d49b1872c29af3e3fc16bdba15f7376 (patch)
tree07780a8a1db6a8f9c3ac65806d32db75ee0efd14 /lib
parentinclude/path.h: remove duplicate header inclusion (diff)
downloadkernel-qcow2-util-linux-110260830d49b1872c29af3e3fc16bdba15f7376.tar.gz
kernel-qcow2-util-linux-110260830d49b1872c29af3e3fc16bdba15f7376.tar.xz
kernel-qcow2-util-linux-110260830d49b1872c29af3e3fc16bdba15f7376.zip
docs: fix typos [codespell]
Reference: https://github.com/codespell-project/codespell Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'lib')
-rw-r--r--lib/loopdev.c6
-rw-r--r--lib/path.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/loopdev.c b/lib/loopdev.c
index a57650cb5..2b6ecea4d 100644
--- a/lib/loopdev.c
+++ b/lib/loopdev.c
@@ -363,7 +363,7 @@ int loopcxt_deinit_iterator(struct loopdev_cxt *lc)
/*
* Same as loopcxt_set_device, but also checks if the device is
- * associeted with any file.
+ * associated with any file.
*
* Returns: <0 on error, 0 on success, 1 device does not match with
* LOOPITER_FL_{USED,FREE} flags.
@@ -692,7 +692,7 @@ char *loopcxt_get_backing_file(struct loopdev_cxt *lc)
if (sysfs)
/*
- * This is always preffered, the loop_info64
+ * This is always preferred, the loop_info64
* has too small buffer for the filename.
*/
ul_path_read_string(sysfs, &res, "loop/backing_file");
@@ -1776,7 +1776,7 @@ char *loopdev_find_by_backing_file(const char *filename, uint64_t offset, uint64
/*
* Returns number of loop devices associated with @file, if only one loop
- * device is associeted with the given @filename and @loopdev is not NULL then
+ * device is associated with the given @filename and @loopdev is not NULL then
* @loopdev returns name of the device.
*/
int loopdev_count_by_backing_file(const char *filename, char **loopdev)
diff --git a/lib/path.c b/lib/path.c
index 9dfdc94f8..e2e26c22c 100644
--- a/lib/path.c
+++ b/lib/path.c
@@ -585,7 +585,7 @@ int ul_path_read_string(struct path_cxt *pc, char **str, const char *path)
if (rc < 0 || !str)
return rc;;
- /* Remove tailing newline (usuall in sysfs) */
+ /* Remove tailing newline (usual in sysfs) */
if (rc > 0 && *(buf + rc - 1) == '\n')
--rc;
@@ -618,7 +618,7 @@ int ul_path_read_buffer(struct path_cxt *pc, char *buf, size_t bufsz, const char
if (rc < 0)
return rc;;
- /* Remove tailing newline (usuall in sysfs) */
+ /* Remove tailing newline (usual in sysfs) */
if (rc > 0 && *(buf + rc - 1) == '\n')
--rc;