]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: fix typos
authorMarcos Mello <marcosfrm@gmail.com>
Thu, 20 Jun 2019 11:22:25 +0000 (08:22 -0300)
committerMarcos Mello <marcosfrm@gmail.com>
Thu, 20 Jun 2019 11:22:25 +0000 (08:22 -0300)
libfdisk/src/alignment.c
libfdisk/src/context.c
libfdisk/src/label.c
libfdisk/src/script.c

index 426fa938c4df03264ae2e96019e54cd633e3ae3f..4ae5ff08f93603ff840cd061b3341871627aa371 100644 (file)
@@ -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.
  *
index b62d2b1017026f831d08e95cf5a5381fa32a5929..3677648e90fc22abbaea58227856332b780d6f7b 100644 (file)
@@ -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)
  * </informalexample>
  *
  * 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.
index 68f73f1435286595140f423af2029492c14fded4..a18cdeaffbf7d576c4891fd82d8808202bfd87d5 100644 (file)
@@ -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
  *
index dbbd53eaf078571690dbac333dd4dd6e07b4a9f2..3db76c87b3d716b959a46b285ebdce23d34af387 100644 (file)
@@ -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.
  */