summaryrefslogtreecommitdiffstats
path: root/libfdisk
diff options
context:
space:
mode:
authorSami Kerola2019-01-14 23:40:34 +0100
committerKarel Zak2019-02-18 13:22:43 +0100
commit110260830d49b1872c29af3e3fc16bdba15f7376 (patch)
tree07780a8a1db6a8f9c3ac65806d32db75ee0efd14 /libfdisk
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 'libfdisk')
-rw-r--r--libfdisk/samples/mkpart-fullspec.c2
-rw-r--r--libfdisk/src/alignment.c2
-rw-r--r--libfdisk/src/libfdisk.h.in6
-rw-r--r--libfdisk/src/script.c2
-rw-r--r--libfdisk/src/sgi.c2
-rw-r--r--libfdisk/src/utils.c2
6 files changed, 8 insertions, 8 deletions
diff --git a/libfdisk/samples/mkpart-fullspec.c b/libfdisk/samples/mkpart-fullspec.c
index 8b439f7ad..2f2704d47 100644
--- a/libfdisk/samples/mkpart-fullspec.c
+++ b/libfdisk/samples/mkpart-fullspec.c
@@ -6,7 +6,7 @@
*
*
* Libfdisk sample to create partitions by specify all required partition
- * properties (partno, start and size). The defauls is only partition type
+ * properties (partno, start and size). The default is only partition type
* (except MBR where 4th partition is extended).
*/
#include <stdlib.h>
diff --git a/libfdisk/src/alignment.c b/libfdisk/src/alignment.c
index a238c7bf0..426fa938c 100644
--- a/libfdisk/src/alignment.c
+++ b/libfdisk/src/alignment.c
@@ -661,7 +661,7 @@ int fdisk_apply_label_device_properties(struct fdisk_context *cxt)
int rc = 0;
if (cxt->label && cxt->label->op->reset_alignment) {
- DBG(CXT, ul_debugobj(cxt, "appling label device properties..."));
+ DBG(CXT, ul_debugobj(cxt, "applying label device properties..."));
rc = cxt->label->op->reset_alignment(cxt);
}
return rc;
diff --git a/libfdisk/src/libfdisk.h.in b/libfdisk/src/libfdisk.h.in
index 6f5188d3f..47e778a67 100644
--- a/libfdisk/src/libfdisk.h.in
+++ b/libfdisk/src/libfdisk.h.in
@@ -144,7 +144,7 @@ struct fdisk_labelitem;
* @FDISK_ASKTYPE_OFFSET: ask for offset
* @FDISK_ASKTYPE_WARN: print warning message and errno
* @FDISK_ASKTYPE_WARNX: print warning message
- * @FDISK_ASKTYPE_INFO: print infor message
+ * @FDISK_ASKTYPE_INFO: print info message
* @FDISK_ASKTYPE_YESNO: ask Yes/No question
* @FDISK_ASKTYPE_STRING: ask for string
* @FDISK_ASKTYPE_MENU: ask for menu item
@@ -619,7 +619,7 @@ extern int fdisk_bsd_link_partition(struct fdisk_context *cxt);
* @BSD_LABELITEM_TYPE: type
* @BSD_LABELITEM_DISK: disk
* @BSD_LABELITEM_PACKNAME: packname
- * @BSD_LABELITEM_FLAGS: flags (removeable, ecc, badsect)
+ * @BSD_LABELITEM_FLAGS: flags (removable, ecc, badsect)
* @BSD_LABELITEM_SECSIZE: Bytes/Sector
* @BSD_LABELITEM_NTRACKS: Tracks/Cylinder
* @BSD_LABELITEM_SECPERCYL: Sectors/Cylinder
@@ -731,7 +731,7 @@ extern int fdisk_gpt_set_partition_attrs(struct fdisk_context *cxt, size_t partn
* @GPT_LABELITEM_FIRSTLBA: First Usable LBA
* @GPT_LABELITEM_LASTLBA: Usable LBA
* @GPT_LABELITEM_ALTLBA: Alternative LBA (backup header LBA)
- * @GPT_LABELITEM_ENTRIESLBA: Partitions entires array LBA
+ * @GPT_LABELITEM_ENTRIESLBA: Partitions entries array LBA
* @GPT_LABELITEM_ENTRIESALLOC: Number of allocated entries in entries array
*
* GPT specific label items.
diff --git a/libfdisk/src/script.c b/libfdisk/src/script.c
index e7cf1254e..66be4f08c 100644
--- a/libfdisk/src/script.c
+++ b/libfdisk/src/script.c
@@ -254,7 +254,7 @@ const char *fdisk_script_get_header(struct fdisk_script *dp, const char *name)
* and @data is specified then a new header is added.
*
* Note that libfdisk allows to specify arbitrary custom header, the default
- * build-in headers are "unit" and "label", and some label specific headers
+ * built-in headers are "unit" and "label", and some label specific headers
* (for example "uuid" and "name" for GPT).
*
* Returns: 0 on success, <0 on error
diff --git a/libfdisk/src/sgi.c b/libfdisk/src/sgi.c
index f38e9a09c..884e385ac 100644
--- a/libfdisk/src/sgi.c
+++ b/libfdisk/src/sgi.c
@@ -689,7 +689,7 @@ static int verify_disklabel(struct fdisk_context *cxt, int verbose)
add_to_freelist(cxt, start, lastblock);
}
/*
- * Done with arithmetics. Go for details now.
+ * Done with arithmetic. Go for details now.
*/
if (verbose) {
if (sgi_get_bootpartition(cxt) < 0
diff --git a/libfdisk/src/utils.c b/libfdisk/src/utils.c
index 115409065..6056e7f1f 100644
--- a/libfdisk/src/utils.c
+++ b/libfdisk/src/utils.c
@@ -162,7 +162,7 @@ char *fdisk_partname(const char *dev, size_t partno)
free(res);
- /* check for partition seperator "p" */
+ /* check for partition separator "p" */
if (asprintf(&res, "%.*sp%zu", w, dev, partno) <= 0)
res = NULL;
if (res && access(res, F_OK) == 0)