docs: fix typos [codespell]

Reference: https://github.com/codespell-project/codespell
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2019-01-14 22:40:34 +00:00 committed by Karel Zak
parent fcb89ba7bb
commit 110260830d
19 changed files with 25 additions and 25 deletions

View file

@ -363,7 +363,7 @@ int loopcxt_deinit_iterator(struct loopdev_cxt *lc)
/* /*
* Same as loopcxt_set_device, but also checks if the device is * Same as loopcxt_set_device, but also checks if the device is
* associeted with any file. * associated with any file.
* *
* Returns: <0 on error, 0 on success, 1 device does not match with * Returns: <0 on error, 0 on success, 1 device does not match with
* LOOPITER_FL_{USED,FREE} flags. * LOOPITER_FL_{USED,FREE} flags.
@ -692,7 +692,7 @@ char *loopcxt_get_backing_file(struct loopdev_cxt *lc)
if (sysfs) if (sysfs)
/* /*
* This is always preffered, the loop_info64 * This is always preferred, the loop_info64
* has too small buffer for the filename. * has too small buffer for the filename.
*/ */
ul_path_read_string(sysfs, &res, "loop/backing_file"); ul_path_read_string(sysfs, &res, "loop/backing_file");
@ -1776,7 +1776,7 @@ char *loopdev_find_by_backing_file(const char *filename, uint64_t offset, uint64
/* /*
* Returns number of loop devices associated with @file, if only one loop * Returns number of loop devices associated with @file, if only one loop
* device is associeted with the given @filename and @loopdev is not NULL then * device is associated with the given @filename and @loopdev is not NULL then
* @loopdev returns name of the device. * @loopdev returns name of the device.
*/ */
int loopdev_count_by_backing_file(const char *filename, char **loopdev) int loopdev_count_by_backing_file(const char *filename, char **loopdev)

View file

@ -585,7 +585,7 @@ int ul_path_read_string(struct path_cxt *pc, char **str, const char *path)
if (rc < 0 || !str) if (rc < 0 || !str)
return rc;; return rc;;
/* Remove tailing newline (usuall in sysfs) */ /* Remove tailing newline (usual in sysfs) */
if (rc > 0 && *(buf + rc - 1) == '\n') if (rc > 0 && *(buf + rc - 1) == '\n')
--rc; --rc;
@ -618,7 +618,7 @@ int ul_path_read_buffer(struct path_cxt *pc, char *buf, size_t bufsz, const char
if (rc < 0) if (rc < 0)
return rc;; return rc;;
/* Remove tailing newline (usuall in sysfs) */ /* Remove tailing newline (usual in sysfs) */
if (rc > 0 && *(buf + rc - 1) == '\n') if (rc > 0 && *(buf + rc - 1) == '\n')
--rc; --rc;

View file

@ -1161,7 +1161,7 @@ int blkid_do_probe(blkid_probe pr)
* </programlisting> * </programlisting>
* </example> * </example>
* *
* See also blkid_probe_step_back() if you cannot use this build-in wipe * See also blkid_probe_step_back() if you cannot use this built-in wipe
* function, but you want to use libblkid probing as a source for wiping. * function, but you want to use libblkid probing as a source for wiping.
* *
* Returns: 0 on success, and -1 in case of error. * Returns: 0 on success, and -1 in case of error.

View file

@ -6,7 +6,7 @@
* *
* *
* Libfdisk sample to create partitions by specify all required partition * 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). * (except MBR where 4th partition is extended).
*/ */
#include <stdlib.h> #include <stdlib.h>

View file

@ -661,7 +661,7 @@ int fdisk_apply_label_device_properties(struct fdisk_context *cxt)
int rc = 0; int rc = 0;
if (cxt->label && cxt->label->op->reset_alignment) { 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); rc = cxt->label->op->reset_alignment(cxt);
} }
return rc; return rc;

View file

@ -144,7 +144,7 @@ struct fdisk_labelitem;
* @FDISK_ASKTYPE_OFFSET: ask for offset * @FDISK_ASKTYPE_OFFSET: ask for offset
* @FDISK_ASKTYPE_WARN: print warning message and errno * @FDISK_ASKTYPE_WARN: print warning message and errno
* @FDISK_ASKTYPE_WARNX: print warning message * @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_YESNO: ask Yes/No question
* @FDISK_ASKTYPE_STRING: ask for string * @FDISK_ASKTYPE_STRING: ask for string
* @FDISK_ASKTYPE_MENU: ask for menu item * @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_TYPE: type
* @BSD_LABELITEM_DISK: disk * @BSD_LABELITEM_DISK: disk
* @BSD_LABELITEM_PACKNAME: packname * @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_SECSIZE: Bytes/Sector
* @BSD_LABELITEM_NTRACKS: Tracks/Cylinder * @BSD_LABELITEM_NTRACKS: Tracks/Cylinder
* @BSD_LABELITEM_SECPERCYL: Sectors/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_FIRSTLBA: First Usable LBA
* @GPT_LABELITEM_LASTLBA: Usable LBA * @GPT_LABELITEM_LASTLBA: Usable LBA
* @GPT_LABELITEM_ALTLBA: Alternative LBA (backup header 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_LABELITEM_ENTRIESALLOC: Number of allocated entries in entries array
* *
* GPT specific label items. * GPT specific label items.

View file

@ -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. * and @data is specified then a new header is added.
* *
* Note that libfdisk allows to specify arbitrary custom header, the default * 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). * (for example "uuid" and "name" for GPT).
* *
* Returns: 0 on success, <0 on error * Returns: 0 on success, <0 on error

View file

@ -689,7 +689,7 @@ static int verify_disklabel(struct fdisk_context *cxt, int verbose)
add_to_freelist(cxt, start, lastblock); add_to_freelist(cxt, start, lastblock);
} }
/* /*
* Done with arithmetics. Go for details now. * Done with arithmetic. Go for details now.
*/ */
if (verbose) { if (verbose) {
if (sgi_get_bootpartition(cxt) < 0 if (sgi_get_bootpartition(cxt) < 0

View file

@ -162,7 +162,7 @@ char *fdisk_partname(const char *dev, size_t partno)
free(res); free(res);
/* check for partition seperator "p" */ /* check for partition separator "p" */
if (asprintf(&res, "%.*sp%zu", w, dev, partno) <= 0) if (asprintf(&res, "%.*sp%zu", w, dev, partno) <= 0)
res = NULL; res = NULL;
if (res && access(res, F_OK) == 0) if (res && access(res, F_OK) == 0)

View file

@ -281,7 +281,7 @@ static PyObject *Table_find_srcpath(TableObject *self, PyObject *args, PyObject
#define Table_find_tag_HELP "find_tag(tag, val, [direction])\n\n" \ #define Table_find_tag_HELP "find_tag(tag, val, [direction])\n\n" \
"Try to lookup an entry in given tab, first attempt is lookup by tag and\n" \ "Try to lookup an entry in given tab, first attempt is lookup by tag and\n" \
"val, for the second attempt the tag is evaluated (converted to the device\n" \ "val, for the second attempt the tag is evaluated (converted to the device\n" \
"name) and Tab.find_srcpath() is preformed. The second attempt is not\n" \ "name) and Tab.find_srcpath() is performed. The second attempt is not\n" \
"performed when tb cache is not set (not implemented yet).\n" \ "performed when tb cache is not set (not implemented yet).\n" \
"\n" \ "\n" \
"Returns a tab entry or NULL." "Returns a tab entry or NULL."

View file

@ -127,7 +127,7 @@ void scols_groups_fix_members_order(struct libscols_table *tb)
groups_fix_members_order(ln); groups_fix_members_order(ln);
} }
/* If group child is memeber of another group * /* If group child is member of another group *
scols_reset_iter(&itr, SCOLS_ITER_FORWARD); scols_reset_iter(&itr, SCOLS_ITER_FORWARD);
while (scols_table_next_group(tb, &itr, &gr) == 0) { while (scols_table_next_group(tb, &itr, &gr) == 0) {
struct libscols_iter xitr; struct libscols_iter xitr;
@ -224,7 +224,7 @@ static int group_state_for_line(struct libscols_group *gr, struct libscols_line
*/ */
static void grpset_apply_group_state(struct libscols_group **xx, int state, struct libscols_group *gr) static void grpset_apply_group_state(struct libscols_group **xx, int state, struct libscols_group *gr)
{ {
DBG(GROUP, ul_debugobj(gr, " appling state to grpset")); DBG(GROUP, ul_debugobj(gr, " applying state to grpset"));
/* gr->state holds the old state, @state is the new state /* gr->state holds the old state, @state is the new state
*/ */

View file

@ -991,7 +991,7 @@ int __scols_initialize_printing(struct libscols_table *tb, struct libscols_buffe
break; break;
case SCOLS_FMT_JSON: case SCOLS_FMT_JSON:
if (tb->format == SCOLS_FMT_JSON) if (tb->format == SCOLS_FMT_JSON)
extra_bufsz += tb->nlines * 3; /* indention */ extra_bufsz += tb->nlines * 3; /* indentation */
/* fallthrough */ /* fallthrough */
case SCOLS_FMT_EXPORT: case SCOLS_FMT_EXPORT:
{ {

View file

@ -213,7 +213,7 @@ struct libscols_table {
struct libscols_symbols *symbols; struct libscols_symbols *symbols;
struct libscols_cell title; /* optional table title (for humans) */ struct libscols_cell title; /* optional table title (for humans) */
int indent; /* indention counter */ int indent; /* indentation counter */
int indent_last_sep;/* last printed has been line separator */ int indent_last_sep;/* last printed has been line separator */
int format; /* SCOLS_FMT_* */ int format; /* SCOLS_FMT_* */

View file

@ -1568,7 +1568,7 @@ int main(int argc, char *argv[])
columns[ncolumns++] = i; columns[ncolumns++] = i;
} else if (ncolumns == 2) { } else if (ncolumns == 2) {
/* default colummns */ /* default columns */
add_column(columns, ncolumns++, COL_NPROCS); add_column(columns, ncolumns++, COL_NPROCS);
add_column(columns, ncolumns++, COL_PWDLOCK); add_column(columns, ncolumns++, COL_PWDLOCK);
add_column(columns, ncolumns++, COL_PWDDENY); add_column(columns, ncolumns++, COL_PWDDENY);

View file

@ -1282,7 +1282,7 @@ int main(int argc, char **argv)
} }
#endif #endif
/* user overwrites build-in SD-ELEMENT */ /* user overwrites built-in SD-ELEMENT */
if (has_structured_data_id(get_user_structured_data(&ctl), "timeQuality")) if (has_structured_data_id(get_user_structured_data(&ctl), "timeQuality"))
ctl.rfc5424_tq = 0; ctl.rfc5424_tq = 0;

View file

@ -131,7 +131,7 @@ struct lsblk_device {
#define device_is_partition(_x) ((_x)->wholedisk != NULL) #define device_is_partition(_x) ((_x)->wholedisk != NULL)
/* /*
* Note that lsblk tree uses botton devices (devices without slaves) as root * Note that lsblk tree uses bottom devices (devices without slaves) as root
* of the tree, and partitions are interpreted as a dependence too; it means: * of the tree, and partitions are interpreted as a dependence too; it means:
* sda -> sda1 -> md0 * sda -> sda1 -> md0
* *

View file

@ -547,7 +547,7 @@ int main(int argc, char **argv)
lookup(arg, ls, want); lookup(arg, ls, want);
/* /*
* The lookup mask ("want") is cumulative and it's * The lookup mask ("want") is cumulative and it's
* resetable only when it has been already used. * resettable only when it has been already used.
* *
* whereis -b -m foo :'foo' mask=BIN|MAN * whereis -b -m foo :'foo' mask=BIN|MAN
* whereis -b foo bar :'foo' and 'bar' mask=BIN|MAN * whereis -b foo bar :'foo' and 'bar' mask=BIN|MAN

View file

@ -444,7 +444,7 @@ static void toggle_tray(int fd)
struct timeval time_start, time_stop; struct timeval time_start, time_stop;
int time_elapsed; int time_elapsed;
/* Try to open the CDROM tray and measure the time therefor /* Try to open the CDROM tray and measure the time therefore
* needed. In my experience the function needs less than 0.05 * needed. In my experience the function needs less than 0.05
* seconds if the tray was already open, and at least 1.5 seconds * seconds if the tray was already open, and at least 1.5 seconds
* if it was closed. */ * if it was closed. */

View file

@ -1284,7 +1284,7 @@ static void termio_init(struct options *op, struct termios *tp)
* later on. * later on.
*/ */
/* The defaul is set c_iflag in termio_final() according to chardata. /* The default is set c_iflag in termio_final() according to chardata.
* Unfortunately, the chardata are not set according to the serial line * Unfortunately, the chardata are not set according to the serial line
* if --autolog is enabled. In this case we do not read from the line * if --autolog is enabled. In this case we do not read from the line
* at all. The best what we can do in this case is to keep c_iflag * at all. The best what we can do in this case is to keep c_iflag