From f1424a94239f9149939b45ed9f19e8f77fb1847d Mon Sep 17 00:00:00 2001 From: Marcos Mello Date: Thu, 20 Jun 2019 08:22:25 -0300 Subject: libfdisk: fix typos --- libfdisk/src/alignment.c | 2 +- libfdisk/src/context.c | 8 ++++---- libfdisk/src/label.c | 8 ++++---- libfdisk/src/script.c | 10 +++++----- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/libfdisk/src/alignment.c b/libfdisk/src/alignment.c index 426fa938c..4ae5ff08f 100644 --- a/libfdisk/src/alignment.c +++ b/libfdisk/src/alignment.c @@ -324,7 +324,7 @@ int fdisk_save_user_sector_size(struct fdisk_context *cxt, * * The smallest possible granularity for partitioning is physical sector size * (or minimal I/O size; the bigger number win). If the user's @grain size is - * too small than the smallest possible granularity is used. It means + * too small then the smallest possible granularity is used. It means * fdisk_save_user_grain(cxt, 512) forces libfdisk to use grain as small as * possible. * diff --git a/libfdisk/src/context.c b/libfdisk/src/context.c index b62d2b101..3677648e9 100644 --- a/libfdisk/src/context.c +++ b/libfdisk/src/context.c @@ -17,7 +17,7 @@ * * The library distinguish between three types of partitioning objects. * - * on-disk lebel data + * on-disk label data * - disk label specific * - probed and read by disklabel drivers when assign device to the context * or when switch to another disk label type @@ -487,7 +487,7 @@ int fdisk_is_ptcollision(struct fdisk_context *cxt) * * * Note that the recommended way to list partitions is to use - * fdisk_get_partitions() and struct fdisk_table than ask disk driver for each + * fdisk_get_partitions() and struct fdisk_table then ask disk driver for each * individual partitions. * * Returns: maximal number of partitions for the current label. @@ -649,7 +649,7 @@ fail: * collisions and switch the current label driver to reflect the probing * result. * - * If in standard mode (!= non-listonly mode) than also detects for collisions. + * If in standard mode (!= non-listonly mode) then also detects for collisions. * The result is accessible by fdisk_get_collision() and * fdisk_is_ptcollision(). The collision (e.g. old obsolete PT) may be removed * by fdisk_enable_wipe(). Note that new PT and old PT may be on different @@ -711,7 +711,7 @@ int fdisk_assign_device_by_fd(struct fdisk_context *cxt, int fd, * @cxt: context * @nosync: disable fsync() * - * Close device and call fsync(). If the @cxt is nested context than the + * Close device and call fsync(). If the @cxt is nested context then the * request is redirected to the parent. * * Returns: 0 on success, < 0 on error. diff --git a/libfdisk/src/label.c b/libfdisk/src/label.c index 68f73f143..a18cdeaff 100644 --- a/libfdisk/src/label.c +++ b/libfdisk/src/label.c @@ -247,7 +247,7 @@ const struct fdisk_field *fdisk_label_get_field_by_name( * fdisk_write_disklabel: * @cxt: fdisk context * - * This function wipes the device (if eanbled by fdisk_enable_wipe() and than + * This function wipes the device (if enabled by fdisk_enable_wipe()) and then * it writes in-memory changes to disk. Be careful! * * Returns: 0 on success, otherwise, a corresponding error. @@ -637,7 +637,7 @@ int fdisk_label_is_disabled(const struct fdisk_label *lb) * @ma: maximal number * * The function provides minimal and maximal geometry supported for the label, - * if no range defined by library than returns -ENOSYS. + * if no range defined by library then returns -ENOSYS. * * Since: 2.32 * @@ -662,7 +662,7 @@ int fdisk_label_get_geomrange_sectors(const struct fdisk_label *lb, * @ma: maximal number * * The function provides minimal and maximal geometry supported for the label, - * if no range defined by library than returns -ENOSYS. + * if no range defined by library then returns -ENOSYS. * * Since: 2.32 * @@ -687,7 +687,7 @@ int fdisk_label_get_geomrange_heads(const struct fdisk_label *lb, * @ma: maximal number * * The function provides minimal and maximal geometry supported for the label, - * if no range defined by library than returns -ENOSYS. + * if no range defined by library then returns -ENOSYS. * * Since: 2.32 * diff --git a/libfdisk/src/script.c b/libfdisk/src/script.c index dbbd53eaf..3db76c87b 100644 --- a/libfdisk/src/script.c +++ b/libfdisk/src/script.c @@ -30,7 +30,7 @@ * The read functions fdisk_script_read_context() and fdisk_script_read_file() * creates always a new script partition table. The table (see * fdisk_script_get_table()) is possible to modify by standard - * fdisk_table_...() functions and than apply by fdisk_apply_script(). + * fdisk_table_...() functions and then apply by fdisk_apply_script(). * * Note that script API is fully non-interactive and forces libfdisk to not use * standard dialog driven partitioning as we have in fdisk(8). @@ -345,7 +345,7 @@ struct fdisk_table *fdisk_script_get_table(struct fdisk_script *dp) if (!dp->table) /* * Make sure user has access to the same table as script. If - * there is no table than create a new and reuse it later. + * there is no table then create a new one and reuse it later. */ dp->table = fdisk_new_table(); @@ -363,10 +363,10 @@ struct fdisk_table *fdisk_script_get_table(struct fdisk_script *dp) * * This is useful for example to create partition table with the same basic * settings (e.g. label-id, ...) but with different partitions -- just call - * fdisk_script_read_context() to get current settings and than + * fdisk_script_read_context() to get current settings and then * fdisk_script_set_table() to set a different layout. * - * If @tb is NULL than the current script table is unreferenced. + * If @tb is NULL then the current script table is unreferenced. * * Note that script read_ functions (e.g. fdisk_script_read_context()) create * always a new script table. @@ -434,7 +434,7 @@ int fdisk_script_has_force_label(struct fdisk_script *dp) * @cxt: context * * Reads data from the @cxt context (on disk partition table) into the script. - * If the context is no specified than defaults to context used for fdisk_new_script(). + * If the context is not specified then defaults to context used for fdisk_new_script(). * * Return: 0 on success, <0 on error. */ -- cgit v1.2.3-55-g7522