*
* 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.
*
*
* 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
* </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.
* 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
* @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.
* 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.
* @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
*
* @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
*
* @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
*
* 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).
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();
*
* 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.
* @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.
*/