]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: fix some typos
authorKarel Zak <kzak@redhat.com>
Tue, 13 Jan 2015 12:46:09 +0000 (13:46 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 13 Jan 2015 12:46:09 +0000 (13:46 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/context.c
libfdisk/src/label.c
libfdisk/src/script.c

index 2a4d377e05a43b76235284381c7fb238a79f8eac..671c0ac7de4ebdda72a943288b69c2e6c04a93c8 100644 (file)
@@ -908,7 +908,7 @@ fdisk_sector_t fdisk_get_last_lba(struct fdisk_context *cxt)
  * fdisk_reset_alignment().
  *
  * The default is number of sectors on the device, but maybe modified by the
- * current disklabel driver (for example GPT uses and of disk for backup
+ * current disklabel driver (for example GPT uses the end of disk for backup
  * header, so last_lba is smaller than total number of sectors).
  *
  * Returns: 0 on success, <0 on error.
index e4d15b216fcb73456d2ba1dff493c2ced9e7de2a..beff2e82736be21b18d084dc8200aa941933088d 100644 (file)
@@ -15,9 +15,9 @@
  * fdisk_unref_context() only.
  *
  * Anyway, all label drives share in-memory first sector. The function
- * fdisk_create_disklabel() overwrites the sector. But it's possible that
- * label driver also uses another buffers, for example GPT uses more than only
- * the first sector.
+ * fdisk_create_disklabel() overwrites thi in-memory sector. But it's possible that
+ * label driver also uses another buffers, for example GPT reads more sectors
+ * from the device.
  *
  * All label operations are in-memory only, except fdisk_write_disklabel().
  *
@@ -370,7 +370,7 @@ int fdisk_create_disklabel(struct fdisk_context *cxt, const char *name)
  *
  * Locate disklabel and returns info about @n item of the label. For example
  * GPT is composed from two items, PMBR and GPT, n=0 return offset to PMBR and n=1
- * return offset to GPT. For more details see 'D' expect fdisk command.
+ * return offset to GPT. For more details see 'D' expert fdisk command.
  *
  * Returns: 0 on succes, <0 on error, 1 no more items.
  */
index 83bda995dd64f0c73ef5f9d06b7204b13e697081..c75494a2e2d6c37e083b5ebc66524f3ebb4816c7 100644 (file)
@@ -214,11 +214,11 @@ const char *fdisk_script_get_header(struct fdisk_script *dp, const char *name)
  * @name: header name
  * @data: header data (or NULL)
  *
- * The headers are used as global options (in script) for whole partition
+ * The headers are used as global options for whole partition
  * table, always one header per line.
  *
- * If no @data specified then the header is removed. If header does not exist
- * and @data specified then a new header added.
+ * If no @data is specified then the header is removed. If header does not exist
+ * 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