]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
docs: fix typos [codespell]
authorSami Kerola <kerolasa@iki.fi>
Mon, 14 Jan 2019 22:40:34 +0000 (22:40 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Feb 2019 12:22:43 +0000 (13:22 +0100)
Reference: https://github.com/codespell-project/codespell
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
19 files changed:
lib/loopdev.c
lib/path.c
libblkid/src/probe.c
libfdisk/samples/mkpart-fullspec.c
libfdisk/src/alignment.c
libfdisk/src/libfdisk.h.in
libfdisk/src/script.c
libfdisk/src/sgi.c
libfdisk/src/utils.c
libmount/python/tab.c
libsmartcols/src/grouping.c
libsmartcols/src/print.c
libsmartcols/src/smartcolsP.h
login-utils/lslogins.c
misc-utils/logger.c
misc-utils/lsblk.h
misc-utils/whereis.c
sys-utils/eject.c
term-utils/agetty.c

index a57650cb5354fc5a798d41f906309747a3ec31ca..2b6ecea4d32091a5ddd4c0a2e6d7151ec7991334 100644 (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
- * associeted with any file.
+ * associated with any file.
  *
  * Returns: <0 on error, 0 on success, 1 device does not match with
  *         LOOPITER_FL_{USED,FREE} flags.
@@ -692,7 +692,7 @@ char *loopcxt_get_backing_file(struct loopdev_cxt *lc)
 
        if (sysfs)
                /*
-                * This is always preffered, the loop_info64
+                * This is always preferred, the loop_info64
                 * has too small buffer for the filename.
                 */
                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
- * 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.
  */
 int loopdev_count_by_backing_file(const char *filename, char **loopdev)
index 9dfdc94f86bbfd4b504b499d95def5e9ea5c40ea..e2e26c22c6780f860a34cbbc85e9274e71e56a2a 100644 (file)
@@ -585,7 +585,7 @@ int ul_path_read_string(struct path_cxt *pc, char **str, const char *path)
        if (rc < 0 || !str)
                return rc;;
 
-       /* Remove tailing newline (usuall in sysfs) */
+       /* Remove tailing newline (usual in sysfs) */
        if (rc > 0 && *(buf + rc - 1) == '\n')
                --rc;
 
@@ -618,7 +618,7 @@ int ul_path_read_buffer(struct path_cxt *pc, char *buf, size_t bufsz, const char
        if (rc < 0)
                return rc;;
 
-       /* Remove tailing newline (usuall in sysfs) */
+       /* Remove tailing newline (usual in sysfs) */
        if (rc > 0 && *(buf + rc - 1) == '\n')
                --rc;
 
index 2dd87cf9ad3fd8ffa305d1d242eb8f96f07879cf..1ace06a68da1cef9cf2eae35e9193a9e539ecf3d 100644 (file)
@@ -1161,7 +1161,7 @@ int blkid_do_probe(blkid_probe pr)
  *  </programlisting>
  * </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.
  *
  * Returns: 0 on success, and -1 in case of error.
index 8b439f7adb57d8b386d341d4e5b0af6be742c290..2f2704d4728996ae15b0602216eb547d44582fc1 100644 (file)
@@ -6,7 +6,7 @@
  *
  *
  * 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).
  */
 #include <stdlib.h>
index a238c7bf0dc0104723f962d050d44da73b56f98a..426fa938c4df03264ae2e96019e54cd633e3ae3f 100644 (file)
@@ -661,7 +661,7 @@ int fdisk_apply_label_device_properties(struct fdisk_context *cxt)
        int rc = 0;
 
        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);
        }
        return rc;
index 6f5188d3f91caf0ef2edba580f234e5f7458a625..47e778a6787c0c6ed529ba71885b1187bad280d7 100644 (file)
@@ -144,7 +144,7 @@ struct fdisk_labelitem;
  * @FDISK_ASKTYPE_OFFSET:  ask for offset
  * @FDISK_ASKTYPE_WARN:  print warning message and errno
  * @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_STRING: ask for string
  * @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_DISK: disk
  * @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_NTRACKS: Tracks/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_LASTLBA: Usable 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 specific label items.
index e7cf1254e4bebb3c346b1f7b4052a9fc79430b5f..66be4f08c0cb5182f102d3f016dcd068607bb40c 100644 (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.
  *
  * 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).
  *
  * Returns: 0 on success, <0 on error
index f38e9a09ccb130038e2709c19b69d9f6e42ae7ab..884e385ac4ac158677d412be5cad735ae5483266 100644 (file)
@@ -689,7 +689,7 @@ static int verify_disklabel(struct fdisk_context *cxt, int verbose)
                add_to_freelist(cxt, start, lastblock);
        }
        /*
-        * Done with arithmetics. Go for details now.
+        * Done with arithmetic. Go for details now.
         */
        if (verbose) {
                if (sgi_get_bootpartition(cxt) < 0
index 115409065b35026982b0e1bcea8b6713b857221e..6056e7f1fe41c0b5ac72a48d97fa05929910d3ea 100644 (file)
@@ -162,7 +162,7 @@ char *fdisk_partname(const char *dev, size_t partno)
 
                free(res);
 
-               /* check for partition seperator "p" */
+               /* check for partition separator "p" */
                if (asprintf(&res, "%.*sp%zu", w, dev, partno) <= 0)
                        res = NULL;
                if (res && access(res, F_OK) == 0)
index 5fb7140d9a4afd6e5ee6498ba9deb75918613e91..ce604dd611e5d43d573a01d756ac970012fcaf67 100644 (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" \
                "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" \
-               "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" \
                "\n" \
                "Returns a tab entry or NULL."
index c5fb2cb9ff31ad247ae18e05f28da9b137d84c46..add4b748afa6d9d033e9a2e985f3b597ca708244 100644 (file)
@@ -127,7 +127,7 @@ void scols_groups_fix_members_order(struct libscols_table *tb)
                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);
        while (scols_table_next_group(tb, &itr, &gr) == 0) {
                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)
 {
-       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
         */
index 4a45b41fb5ab4e55b96605ed2c14ffcd1ef7938e..251b211c702f6e0226cc5785cb532f99382d947f 100644 (file)
@@ -991,7 +991,7 @@ int __scols_initialize_printing(struct libscols_table *tb, struct libscols_buffe
                break;
        case SCOLS_FMT_JSON:
                if (tb->format == SCOLS_FMT_JSON)
-                       extra_bufsz += tb->nlines * 3;          /* indention */
+                       extra_bufsz += tb->nlines * 3;          /* indentation */
                /* fallthrough */
        case SCOLS_FMT_EXPORT:
        {
index 2bc62800d11e45f228b90807ef26a35ed313c98d..5af5b096e20dc6ca04af2439ea6740f0a058a0ee 100644 (file)
@@ -213,7 +213,7 @@ struct libscols_table {
        struct libscols_symbols *symbols;
        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     format;         /* SCOLS_FMT_* */
 
index cb03272b463276fa44056d21ab87be3350bed88c..c913cf2d845f41e94e5ac5ecebc4ae88a77f0477 100644 (file)
@@ -1568,7 +1568,7 @@ int main(int argc, char *argv[])
                         columns[ncolumns++] = i;
 
        } else if (ncolumns == 2) {
-               /* default colummns */
+               /* default columns */
                add_column(columns, ncolumns++, COL_NPROCS);
                add_column(columns, ncolumns++, COL_PWDLOCK);
                add_column(columns, ncolumns++, COL_PWDDENY);
index 394a477db4d3fb7951cd4c14b5326f89bbde527f..d6cee8287b0f3088f3099259e564eaa7e95616b9 100644 (file)
@@ -1282,7 +1282,7 @@ int main(int argc, char **argv)
        }
 #endif
 
-       /* user overwrites build-in SD-ELEMENT */
+       /* user overwrites built-in SD-ELEMENT */
        if (has_structured_data_id(get_user_structured_data(&ctl), "timeQuality"))
                ctl.rfc5424_tq = 0;
 
index a043e7fd76ecce2dae8914c2f3dc56cfb78aa8c1..e15c5b42ad6c06a50df417de674eeed4682c53be 100644 (file)
@@ -131,7 +131,7 @@ struct lsblk_device {
 #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:
  *    sda -> sda1 -> md0
  *
index c598d494e834683578100ccebb6fe1f7bdabad2b..2d4c58125a672d9a5346a7e8c5eae7f845a4fbb4 100644 (file)
@@ -547,7 +547,7 @@ int main(int argc, char **argv)
                        lookup(arg, ls, want);
                        /*
                         * 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 foo bar    :'foo' and 'bar' mask=BIN|MAN
index 8196b60ddd4b0fe5c825082e82c1c49854d0590c..81cd2bcff6a78b094f64ccd2d491d7b22536cae2 100644 (file)
@@ -444,7 +444,7 @@ static void toggle_tray(int fd)
        struct timeval time_start, time_stop;
        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
         * seconds if the tray was already open, and at least 1.5 seconds
         * if it was closed.  */
index fc373847eee3618128cfc1e02459abacc32e841f..1a3ebc308f4ef2bf7314980b24971b137d348c98 100644 (file)
@@ -1284,7 +1284,7 @@ static void termio_init(struct options *op, struct termios *tp)
         * 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
         * 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