]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Fix minor typos
authorYuri Chornoivan <yurchor@ukr.net>
Thu, 9 Jul 2020 17:14:32 +0000 (20:14 +0300)
committerYuri Chornoivan <yurchor@ukr.net>
Thu, 9 Jul 2020 17:14:32 +0000 (20:14 +0300)
19 files changed:
lib/loopdev.c
lib/randutils.c
libblkid/src/blkidP.h
libblkid/src/probe.c
libblkid/src/superblocks/udf.c
libfdisk/src/context.c
libfdisk/src/gpt.c
libfdisk/src/partition.c
libmount/src/context.c
libmount/src/tab.c
libsmartcols/src/grouping.c
libsmartcols/src/smartcolsP.h
login-utils/runuser.1
login-utils/sulogin-consoles.c
sys-utils/blkzone.c
sys-utils/irq-common.c
sys-utils/lscpu.h
term-utils/agetty.c
term-utils/script-playutils.c

index 70cc0c23a668d4aeeaf350adb83c657a0bf46e12..ef22a9d870acd1d7058e38c74c6e051452b04273 100644 (file)
@@ -681,7 +681,7 @@ struct loop_info64 *loopcxt_get_info(struct loopdev_cxt *lc)
 /*
  * @lc: context
  *
- * Returns (allocated) string with path to the file assicieted
+ * Returns (allocated) string with path to the file associated
  * with the current loop device.
  */
 char *loopcxt_get_backing_file(struct loopdev_cxt *lc)
index ce476f8a73d116458056dda4e90b31a314374e07..bd2a8f6bf3bfeefcfcea9714290867a6b36aa446 100644 (file)
@@ -123,7 +123,7 @@ void random_get_bytes(void *buf, size_t nbytes)
                        break;
 
                } else if (errno == EAGAIN && lose_counter < UL_RAND_READ_ATTEMPTS) {
-                       xusleep(UL_RAND_READ_DELAY);    /* no etropy, wait and try again */
+                       xusleep(UL_RAND_READ_DELAY);    /* no entropy, wait and try again */
                        lose_counter++;
                } else
                        break;
index 699413eb26adde2370d7ace5af50b82e470103ea..802a1b3a6d22c79f7423edc15f45764a885dc188 100644 (file)
@@ -220,7 +220,7 @@ struct blkid_struct_probe
 #define BLKID_FL_TINY_DEV      (1 << 2)        /* <= 1.47MiB (floppy or so) */
 #define BLKID_FL_CDROM_DEV     (1 << 3)        /* is a CD/DVD drive */
 #define BLKID_FL_NOSCAN_DEV    (1 << 4)        /* do not scan this device */
-#define BLKID_FL_MODIF_BUFF    (1 << 5)        /* cached bufferes has been modified */
+#define BLKID_FL_MODIF_BUFF    (1 << 5)        /* cached buffers has been modified */
 
 /* private per-probing flags */
 #define BLKID_PROBE_FL_IGNORE_PT (1 << 1)      /* ignore partition table */
index 1992677cc28e956c97b7fab7fc51f3a59b2a4e82..9f116f15c867f896c3ad53cb1458b01f2982023a 100644 (file)
@@ -693,9 +693,9 @@ unsigned char *blkid_probe_get_buffer(blkid_probe pr, uint64_t off, uint64_t len
  * blkid_probe_reset_buffers:
  * @pr: prober
  *
- * libblkid reuse all already read buffers from the device. The bufferes may be
+ * libblkid reuse all already read buffers from the device. The buffers may be
  * modified by blkid_probe_hide_range(). This function reset and free all
- * cached bufferes. The next blkid_do_probe() will read all data from the
+ * cached buffers. The next blkid_do_probe() will read all data from the
  * device.
  *
  * Returns: <0 in case of failure, or 0 on success.
@@ -1267,7 +1267,7 @@ int blkid_do_wipe(blkid_probe pr, int dryrun)
  * according to the current libblkid probing result.
  *
  * Note that blkid_probe_hide_range() changes semantic of this function and
- * cached bufferes are not reset, but library uses in-memory modified
+ * cached buffers are not reset, but library uses in-memory modified
  * buffers to call the next probing function.
  *
  * <example>
index f2865b2d0213df37b1edbf1ce2f01e500b37fc8f..2a36ceadef7efcc9dec09e305f17091a33cb9140 100644 (file)
@@ -243,7 +243,7 @@ static int probe_udf(blkid_probe pr,
                                 * terminated by the first sector which is not a valid
                                 * descriptor.
                                 * UDF-2.60 2.1.7: UDF 2.00 and lower revisions do not
-                                * have requirement that NSR descritor is in Extended Area
+                                * have requirement that NSR descriptor is in Extended Area
                                 * (between BEA01 and TEA01) and that there is only one
                                 * Extended Area. So do not stop scanning after TEA01. */
                                break;
index 69038afcaef001dd4d4c52a64b1c4aa0dcebd3cf..8eb12271cd66aca0d0bd9688520d61d0e1feac39 100644 (file)
@@ -868,7 +868,7 @@ static inline int add_to_partitions_array(
  * partition table. The BLKPG_* ioctls are used for individual partitions. The
  * advantage is that unmodified partitions maybe mounted.
  *
- * The function behavies like fdisk_reread_partition_table() on systems where
+ * The function behaves like fdisk_reread_partition_table() on systems where
  * are no available BLKPG_* ioctls.
  *
  * Returns: <0 on error, or 0.
index 99a178fa566102a911782c16a7a39ee157484dc0..370bd4097e81c21471c8007d8acc427248fdc621 100644 (file)
@@ -385,7 +385,7 @@ static inline int gpt_calculate_sizeof_entries(
                             sizeof(struct gpt_entry);
 
        if (nents == 0 || esz == 0 || SIZE_MAX/esz < nents) {
-               DBG(GPT, ul_debug("entreis array size check failed"));
+               DBG(GPT, ul_debug("entries array size check failed"));
                return -ERANGE;
        }
 
index f737ff9be61fa60b4eb07ff05a3ff30feffbcc14..ae07882e6a8a66f5b07aa37cc9e5c922d044d1a5 100644 (file)
@@ -1419,7 +1419,7 @@ int fdisk_partition_has_wipe(struct fdisk_context *cxt, struct fdisk_partition *
  * If @pa is not specified or any @pa item is missing the libfdisk will ask by
  * fdisk_ask_ API.
  *
- * The @pa template is is important for non-interactive partitioning,
+ * The @pa template is important for non-interactive partitioning,
  * especially for MBR where is necessary to differentiate between
  * primary/logical; this is done by start offset or/and partno.
  * The rules for MBR:
index 8b548b20ff6bc3339304c47d6ce5f8d955357897..f9e745225a8c76677e250b0405f09d8e234559c7 100644 (file)
@@ -1094,7 +1094,7 @@ const char *mnt_context_get_fstype(struct libmnt_context *cxt)
  * @cxt: mount context
  * @optstr: comma delimited mount options
  *
- * Note that that MS_MOVE cannot be specified as "string". It's operation that
+ * Note that MS_MOVE cannot be specified as "string". It's operation that
  * is no supported in fstab (etc.)
  *
  * Returns: 0 on success, negative number in case of error.
index cac7fd3c125c4f7d63d84e5aa7830801349bacb3..e91254a712ee490387034e8445e703439b93fd67 100644 (file)
@@ -488,7 +488,7 @@ static int __table_insert_fs(
  * @pos is NULL than add the begin of the @tab if @before is 1; or to the tail
  * of the @tb if @before is 0.
  *
- * This function inncrements reference to @fs. Don't forget to use
+ * This function increments reference to @fs. Don't forget to use
  * mnt_unref_fs() after mnt_table_insert_fs() if you want to keep the @fs
  * referenced by the table only.
  *
index fdc1a111e7858a89652744b557940e19aee166d1..d0544efd8ac69ac11c92ca4556ea13a7e46f4120 100644 (file)
@@ -222,7 +222,7 @@ static int group_state_for_line(struct libscols_group *gr, struct libscols_line
 }
 
 /*
- * apply new @state to the chunk (addresesd by @xx) of grpset used for the group (@gr)
+ * apply new @state to the chunk (addressed by @xx) of grpset used for the group (@gr)
  */
 static void grpset_apply_group_state(struct libscols_group **xx, int state, struct libscols_group *gr)
 {
index e745a05a48cea22ee57c893f27130a69c1e32370..e36bb5171b0d0691553262127b642d7252be9958 100644 (file)
@@ -236,7 +236,7 @@ struct libscols_table {
                        colors_wanted   :1,     /* enable colors */
                        is_term         :1,     /* isatty() */
                        padding_debug   :1,     /* output visible padding chars */
-                       is_dummy_print  :1,     /* printing used for width calcualion only */
+                       is_dummy_print  :1,     /* printing used for width calculation only */
                        maxout          :1,     /* maximize output */
                        minout          :1,     /* minimize output (mutually exclusive to maxout) */
                        header_repeat   :1,     /* print header after libscols_table->termheight */
index 8d38dd7de24d6f1f152cdc04fce2fe9917331732..525e8e70532079b1d1619b715819eb0743cad80e 100644 (file)
@@ -10,7 +10,7 @@ runuser \- run a command with substitute user and group ID
 .RI [ user " [" argument "...]]"
 .SH DESCRIPTION
 .B runuser
-can be used to to run commands with a substitute user and group ID.
+can be used to run commands with a substitute user and group ID.
 If the option \fB\-u\fR is not given, it falls back to
 .BR su -compatible
 semantics and a shell is executed.
index 2c0eed3a4c558cdb9648bc998daefd9192e0d29b..facb1ffbbd174f0d0945e7b3887c73591194e9b0 100644 (file)
@@ -318,7 +318,7 @@ int append_console(struct list_head *consoles, const char * const name)
        struct console *restrict tail;
        const struct console *last = NULL;
 
-       DBG(dbgprint("appenging %s", name));
+       DBG(dbgprint("appending %s", name));
 
        if (!list_empty(consoles))
                last = list_last_entry(consoles, struct console, entry);
index 2e00a2823a98012c606d69bf1b9436bc9dd704a1..ed5e68df74cea3c557f5f57c4232984fa6a27df4 100644 (file)
@@ -342,7 +342,7 @@ static int blkzone_action(struct blkzone_control *ctl)
                err(EXIT_FAILURE, _("%s: %s ioctl failed"),
                    ctl->devname, ctl->command->ioctl_name);
        else if (ctl->verbose)
-               printf(_("%s: successfull %s of zones in range from %" PRIu64 ", to %" PRIu64),
+               printf(_("%s: successful %s of zones in range from %" PRIu64 ", to %" PRIu64),
                        ctl->devname,
                        ctl->command->name,
                        ctl->offset,
index 2992d3c7da334716847d73abd08198762ecd97ca..81e8b1d2eee4fd70df682ac6adc2d61cebadc724 100644 (file)
@@ -345,7 +345,7 @@ void set_sort_func_by_name(struct irq_output *out, const char *name)
        else if (strcasecmp(name, "NAME") == 0)
                out->sort_cmp_func = cmp_name;
        else
-               errx(EXIT_FAILURE, _("unssupported column name to sort output"));
+               errx(EXIT_FAILURE, _("unsupported column name to sort output"));
 }
 
 void set_sort_func_by_key(struct irq_output *out, char c)
index 5bbdb348e043fd512b3b0d4b9293a645e25156eb..13af2ad0ac7a0499c1f36fccc4a63c15aae76349 100644 (file)
@@ -119,7 +119,7 @@ struct lscpu_desc {
        char    *mtid;          /* maximum thread id (s390) */
        char    *addrsz;        /* address sizes */
        int     dispatching;    /* none, horizontal or vertical */
-       int     freqboost;      /* -1 if not evailable */
+       int     freqboost;      /* -1 if not available */
        int     mode;           /* rm, lm or/and tm */
 
        int             ncpuspos;       /* maximal possible CPUs */
index 8854798f6dc144795d70bff3839902681f584b08..191fa29c081154d36181f7cd9d25b15298367623 100644 (file)
@@ -1285,7 +1285,7 @@ static void termio_init(struct options *op, struct termios *tp)
                ospeed = cfgetospeed(tp);
 
                /* Save also the original speed to array of the speeds to make
-                * it possible to return the the original after unexpected BREAKs.
+                * it possible to return the original after unexpected BREAKs.
                 */
                if (op->numspeed)
                        op->speeds[op->numspeed++] = ispeed ? ispeed :
index 517c42d6b7b480a51fd521901345cad94fa42dc0..c589438193ccb04a8b8d41df3586122374ea2904 100644 (file)
@@ -47,7 +47,7 @@ struct replay_step {
        char    type;           /* 'I'nput, 'O'utput, ... */
        size_t  size;
 
-       char    *name;          /* signals / heders */
+       char    *name;          /* signals / headers */
        char    *value;
 
        struct timeval delay;
@@ -216,7 +216,7 @@ int replay_set_timing_file(struct replay_setup *stp, const char *filename)
                        rc = -ENOMEM;
                else {
                        log->noseek = 1;
-                       DBG(LOG, ul_debug("accociate file '%s' for streams 'SH'", filename));
+                       DBG(LOG, ul_debug("associate file '%s' for streams 'SH'", filename));
                }
        }
 
@@ -253,7 +253,7 @@ int replay_associate_log(struct replay_setup *stp,
        if (rc == 0)
                replay_new_log(stp, streams, filename, f);
 
-       DBG(LOG, ul_debug("accociate log file '%s', streams '%s' [rc=%d]", filename, streams, rc));
+       DBG(LOG, ul_debug("associate log file '%s', streams '%s' [rc=%d]", filename, streams, rc));
        return rc;
 }