]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Fix typos found by misspellings
authorBernhard Voelker <mail@bernhard-voelker.de>
Thu, 19 Apr 2012 22:10:44 +0000 (00:10 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Apr 2012 11:16:35 +0000 (13:16 +0200)
The tool misspellings (https://github.com/lyda/misspell-check)
detected several typos. Command used:

  $ git ls-files | grep -v ^po/ | misspellings -f -

* isosize: Fix typo in usage string.
* configure.ac: Fix typo in help string of --enable-most-builds option.
* fdisk: Fix typo in man page.
* libblkid, blkid, mount: Likewise.
* Fix various typos in docs and in source code comments.

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
32 files changed:
Documentation/TODO
Documentation/poeigl.txt
Documentation/release-schedule.txt
config/texinfo.tex
configure.ac
disk-utils/isosize.c
fdisk/fdisk.8
fdisk/fdisk.c
getopt/getopt.c
hwclock/cmos.c
hwclock/hwclock.c
lib/strutils.c
libblkid/libblkid.3
libblkid/src/encode.c
libblkid/src/partitions/gpt.c
libblkid/src/partitions/partitions.c
libblkid/src/superblocks/linux_raid.c
libblkid/src/superblocks/superblocks.c
libmount/src/context.c
libmount/src/context_mount.c
libmount/src/context_umount.c
login-utils/login.c
misc-utils/blkid.8
misc-utils/blkid.c
mount/mount.8
sys-utils/dmesg.c
sys-utils/ipcs.c
sys-utils/lscpu.c
sys-utils/mount.8
tests/ts/lscpu/mk-input.sh
text-utils/more.c
text-utils/ul.c

index ed7a0c44334e656236d40ee6fae0f5a9a6601ea1..1fb1939efe6b9066d581cd69bf09bf04fff790be 100644 (file)
@@ -114,7 +114,7 @@ libblkd and libmount
 --------------------
 
  - use __attribute__((notnull)) and __attribute__((warn_unused_result))
-   Note that the code has to be usefull for non-gcc compilers too.
+   Note that the code has to be useful for non-gcc compilers too.
 
 partx
 -----
index 00eaa71012f97fd4594bd5bf7be2bcb2c7ebfdc4..94f51a9b4719226c136ffeecd50fa78e192d5fd5 100644 (file)
@@ -274,7 +274,7 @@ Version 1.21 (30-Oct-93): changes since 1.20
        Rik Faith and Stephen Tweedie inspired this change.
 
 Version 1.20 (30-Jul-93): changes since 1.17:
-       Versions 1.18 and 1.19 were never made publically available.
+       Versions 1.18 and 1.19 were never made publicly available.
        Agetty now supports a -L switch that makes it force the CLOCAL flag.
        This is useful if you have a local terminal attached with a partly
        wired serial cable that does not pass on the Carrier Detect signal.
index 6bdc2a9ae8719d4d6eaf6351387e5d591d28b144..6077735b146733c32565b72d51cce747147cb66d 100644 (file)
@@ -11,7 +11,7 @@ Before a release there are few release candidates, which will be
 collectively tested. During test period changes to code base are
 restricted. Usually there are two release candidates.
 
-  what  lenght         what will be accepted to upstream
+  what  length         what will be accepted to upstream
   -------------------------------------------------------
   rc1   1-2 weeks      bug fixes only
   rc2   1-2 weeks      translations, fatal/trivial bug fixes
index ff2c40654b2f2a17898e7c6623e8f01b0e5481d4..42e8cb34b789db5cb497867669a0efb9d4103fcf 100644 (file)
 \def\argremovecomment#1\comment#2\ArgTerm{\argremovec #1\c\ArgTerm}
 \def\argremovec#1\c#2\ArgTerm{\argcheckspaces#1\^^M\ArgTerm}
 
-% Each occurence of `\^^M' or `<space>\^^M' is replaced by a single space.
+% Each occurrence of `\^^M' or `<space>\^^M' is replaced by a single space.
 %
 % \argremovec might leave us with trailing space, e.g.,
 %    @end itemize  @c foo
@@ -4041,7 +4041,7 @@ where each line of input produces a line of output.}
 \chardef\maxseclevel = 3
 %
 % A numbered section within an unnumbered changes to unnumbered too.
-% To achive this, remember the "biggest" unnum. sec. we are currently in:
+% To achieve this, remember the "biggest" unnum. sec. we are currently in:
 \chardef\unmlevel = \maxseclevel
 %
 % Trace whether the current chapter is an appendix or not:
index 8ed2e0b78a72c13a0f9090473561609b87590d15..0c203fa8b77a04511ef8eb53259bf0bf5f9395ea 100644 (file)
@@ -620,7 +620,7 @@ fi
 
 
 AC_ARG_ENABLE([most-builds],
-  AS_HELP_STRING([--enable-most-builds], [build everthing other than experimental code]),
+  AS_HELP_STRING([--enable-most-builds], [build everything other than experimental code]),
   [], enable_most_builds=no
 )
 if test "x$enable_most_builds" = xyes; then
index 7a8d713018f04d36a04a1e95ca204db56cb5e22b..4ba34d550f9a6b2064cb39e0d97a57b0509ccd33 100644 (file)
@@ -158,7 +158,7 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
                program_invocation_short_name);
 
        fprintf(out, _("\nOptions:\n"
-                      " -d, --divisor=NUM      devide bytes NUM\n"
+                      " -d, --divisor=NUM      divide bytes NUM\n"
                       " -x, --sectors          show sector count and size\n"
                       " -V, --version          output version information and exit\n"
                       " -H, --help             display this help and exit\n\n"));
index fdaa050d1dd1e3be90d8f059355e712263357fc7..2b3c8223e88f544a114f9e8c955d51f0349ce479 100644 (file)
@@ -190,7 +190,7 @@ between logical and physical sector size.  This option changes both sector sizes
 .IB sectorsize .
 .TP
 .BI "\-c"[=mode]
-Specify the compatiblity mode, 'dos' or 'nondos'.  The default is non-DOS
+Specify the compatibility mode, 'dos' or 'nondos'.  The default is non-DOS
 mode.  For backward compatibility, it is possible to use the option without
 the <mode> argument -- then the default is used.  Note that the optional
 <mode> argument cannot be separated from the -c option by a space, the correct
index 3c2c1419ad669dfa43c84866b257ab8d368a96b1..4054b4d28466b0f55f9f8547ddb470d626def169 100644 (file)
@@ -1817,7 +1817,7 @@ wrong_p_order(int *prev) {
  * The chain is sorted so that sectors increase, and so that
  * starting sectors increase.
  *
- * After this it may still be that cfdisk doesnt like the table.
+ * After this it may still be that cfdisk doesn't like the table.
  * (This is because cfdisk considers expanded parts, from link to
  * end of partition, and these may still overlap.)
  * Now
index 4e5043aaa657b56304a16abafa3455b595254342..dcc55b6b19f1eb1dcd5b6f4563e02e1f713abe8b 100644 (file)
@@ -40,7 +40,7 @@
  */
 
 /* Exit codes:
- *   0) No errors, succesful operation.
+ *   0) No errors, successful operation.
  *   1) getopt(3) returned an error.
  *   2) A problem with parameter parsing for getopt(1).
  *   3) Internal error, out of memory
@@ -116,7 +116,7 @@ static const char *normalize(const char *arg)
        }
 
        /*
-        * Each character in arg may take upto four characters in the
+        * Each character in arg may take up to four characters in the
         * result: For a quote we need a closing quote, a backslash, a quote
         * and an opening quote! We need also the global opening and closing
         * quote, and one extra character for '\0'.
index 90da9874ea89ad49bd23493c5204c15f5afce7df..0c98fb899796483c1450a4527be08d059d791f46 100644 (file)
@@ -116,7 +116,7 @@ int cmos_epoch = 1900;
  * Martin Ostermann writes:
  *
  * The problem with the Jensen is twofold: First, it has the clock at a
- * different address. Secondly, it has a distinction beween "local" and
+ * different address. Secondly, it has a distinction between "local" and
  * normal bus addresses. The local ones pertain to the hardware integrated
  * into the chipset, like serial/parallel ports and of course, the RTC.
  * Those need to be addressed differently. This is handled fine in the
@@ -339,7 +339,7 @@ static inline unsigned long cmos_read(unsigned long reg)
                 *
                 * Other docs state that "any write to 0x70 should be
                 * followed by an action to 0x71 or the RTC wil be left in
-                * an unknown state". Most docs say that it doesnt matter at
+                * an unknown state". Most docs say that it doesn't matter at
                 * all what one does.
                 */
                /*
index 3cedd1de33ff39c4aa7f1953c233aaac63c63473..a19a9649069463123846ff422f6293a691338478 100644 (file)
@@ -1799,7 +1799,7 @@ void __attribute__((__noreturn__)) hwaudit_exit(int status)
  * November 1996: Version 2.0.1. Modifications by Nicolai Langfeldt
  * (janl@math.uio.no) to make it compile on linux 1.2 machines as well as
  * more recent versions of the kernel. Introduced the NO_CLOCK access method
- * and wrote feature test code to detect absense of rtc headers.
+ * and wrote feature test code to detect absence of rtc headers.
  *
  ***************************************************************************
  * Maintenance notes
index 477461458a1d1894bfba66fcb0a5d404104f3ca6..372558acd0bf80f771953034bbb3a5648b02acd5 100644 (file)
@@ -429,7 +429,7 @@ int string_to_idarray(const char *list, int ary[], size_t arysz,
  * LIST ::= <item> [, <item>]
  *
  * The <item> is translated to 'id' by name2id() function and the 'id' is used
- * as a possition in the 'ary' bit array. It means that the 'id' has to be in
+ * as a position in the 'ary' bit array. It means that the 'id' has to be in
  * range <0..N> where N < sizeof(ary) * NBBY.
  *
  * Returns: 0 on success, <0 on error.
index 7f1c04522b6f78a689efdb458a152aa2ffd3d9cd..e6c20b1cdc37423aad11d4172befa52c30e6d452 100644 (file)
@@ -23,7 +23,7 @@ filesystem labels/volume names, unique identifiers/serial numbers.
 A common use is to allow use of LABEL= and UUID= tags instead of hard-coding
 specific block device names into configuration files.
 .P
-The low-level part of the library also allows to extract infomation about
+The low-level part of the library also allows to extract information about
 partitions and block device topology.
 .P
 The high-level part of the library keeps information about block devices in a
index 03d5f4ef13fbcf4ba3bb14f24b6c722cb392a710..9a0570e8f21817a1588b80e65326a0f81cf28643 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * encode.c - string convertion routines (mostly for compatibility with
+ * encode.c - string conversion routines (mostly for compatibility with
  *            udev/volume_id)
  *
  * Copyright (C) 2008 Kay Sievers <kay.sievers@vrfy.org>
index 1a50494d59d9aa4f50478e88da49c74b895e68db..ccade6b54e2ca24885eefe340a8578c228800c4a 100644 (file)
@@ -48,7 +48,7 @@ typedef struct {
 struct gpt_header {
        uint64_t        signature;              /* "EFI PART" */
        uint32_t        revision;
-       uint32_t        header_size;            /* usualy 92 bytes */
+       uint32_t        header_size;            /* usually 92 bytes */
        uint32_t        header_crc32;           /* checksum of header with this
                                                 * field zeroed during calculation */
        uint32_t        reserved1;
@@ -120,7 +120,7 @@ static inline int guidcmp(efi_guid_t left, efi_guid_t right)
 }
 
 /*
- * UUID is traditionaly 16 byte big-endian array, except Intel EFI
+ * UUID is traditionally 16 byte big-endian array, except Intel EFI
  * specification where the UUID is a structure of little-endian fields.
  */
 static void swap_efi_guid(efi_guid_t *uid)
index 99ec5d158e6e823a8a934cffda87258c68336cb2..c9f7ff6678a858112853f0b74cf2929daafe9db8 100644 (file)
@@ -910,7 +910,7 @@ blkid_partition blkid_partlist_get_partition(blkid_partlist ls, int n)
  * This function tries to get start and size for @devno from sysfs and
  * returns a partition from @ls which matches with the values from sysfs.
  *
- * This funtion is necessary when you want to make a relation between an entry
+ * This function is necessary when you want to make a relation between an entry
  * in the partition table (@ls) and block devices in your system.
  *
  * Returns: partition object or NULL in case or error.
index 609d24bf752f837b8226a746af9aea8144c9e0bd..a3f9d67d59c2d2757a1f19e83475d945fb4f976f 100644 (file)
@@ -82,7 +82,7 @@ struct mdp1_super_block {
        uint64_t        utime;          /* 40 bits second, 24 btes microseconds */
        uint64_t        events;         /* incremented when superblock updated */
        uint64_t        resync_offset;  /* data before this offset (from data_offset) known to be in sync */
-       uint32_t        sb_csum;        /* checksum upto dev_roles[max_dev] */
+       uint32_t        sb_csum;        /* checksum up to dev_roles[max_dev] */
        uint32_t        max_dev;        /* size of dev_roles[] array to consider */
        uint8_t         pad3[64-32];    /* set to 0 when writing */
 
@@ -160,7 +160,7 @@ static int probe_raid0(blkid_probe pr, blkid_loff_t off)
         * Check for collisions between RAID and partition table
         *
         * For example the superblock is at the end of the last partition, it's
-        * the same possition as at the end of the disk...
+        * the same position as at the end of the disk...
         */
        if ((S_ISREG(pr->mode) || blkid_probe_is_wholedisk(pr)) &&
            blkid_probe_is_covered_by_pt(pr,
index d985adc05a9a1aa416152ac295a31ae449049d39..91f4f88371d9025e7ef0dfbcd4d4186150119083 100644 (file)
  * @title: Superblocks probing
  * @short_description: filesystems and raids superblocks probing.
  *
- * The library API has been originaly designed for superblocks probing only.
+ * The library API has been originally designed for superblocks probing only.
  * This is reason why some *deprecated* superblock specific functions don't use
  * '_superblocks_' namespace in the function name. Please, don't use these
  * functions in new code.
  *
  * The 'superblocks' probers support NAME=value (tags) interface only. The
- * superblocks probing is enabled by default (and controled by
+ * superblocks probing is enabled by default (and controlled by
  * blkid_probe_enable_superblocks()).
  *
  * Currently supported tags:
index 0d0282de83d8574304c8c2727664fa5a49bc7654..7f53a961bf8206ecb416afc50a5e8e71165125a4 100644 (file)
@@ -1778,7 +1778,7 @@ int mnt_context_fstab_applied(struct libmnt_context *cxt)
  * mnt_context_get_helper_status(). The mnt_context_get_status() only inform
  * that exec() has been sucessful.
  *
- * Returns: 1 if mount.type or mount(2) syscall has been succesfully called.
+ * Returns: 1 if mount.type or mount(2) syscall has been successfully called.
  */
 int mnt_context_get_status(struct libmnt_context *cxt)
 {
index 976f459270cc4e73ed8066c545e9951f5aca8816..1f28753fdf2e3648f735fa877cab8187aa6bbf35 100644 (file)
@@ -612,7 +612,7 @@ int mnt_context_prepare_mount(struct libmnt_context *cxt)
  * again mnt_context_do_mount().
  *
  * WARNING: non-zero return code does not mean that mount(2) syscall or
- *          mount.type helper wasn't sucessfully called.
+ *          mount.type helper wasn't successfully called.
  *
  *          Check mnt_context_get_status() after error!
 *
@@ -720,7 +720,7 @@ int mnt_context_finalize_mount(struct libmnt_context *cxt)
  * once, whole context has to be reseted.
  *
  * WARNING: non-zero return code does not mean that mount(2) syscall or
- *          mount.type helper wasn't sucessfully called.
+ *          mount.type helper wasn't successfully called.
  *
  *          Check mnt_context_get_status() after error!
  *
index 7daa913fccaf68711a8fb09f0afb20e393dcba4a..3443da11bc3164827da18d939f3bc5e3ace1d5a4 100644 (file)
@@ -643,7 +643,7 @@ int mnt_context_prepare_umount(struct libmnt_context *cxt)
  * See also mnt_context_disable_helpers().
  *
  * WARNING: non-zero return code does not mean that umount(2) syscall or
- *          umount.type helper wasn't sucessfully called.
+ *          umount.type helper wasn't successfully called.
  *
  *          Check mnt_context_get_status() after error!
 *
@@ -733,7 +733,7 @@ int mnt_context_finalize_umount(struct libmnt_context *cxt)
  * See also mnt_context_disable_helpers().
  *
  * WARNING: non-zero return code does not mean that umount(2) syscall or
- *          umount.type helper wasn't sucessfully called.
+ *          umount.type helper wasn't successfully called.
  *
  *          Check mnt_context_get_status() after error!
  *
index 6c3b6f70910b68125b808ad08d7949f090d4b3dd..bb977e5d9eb21688d4e2874e853bcc2f22fa6502 100644 (file)
@@ -1102,7 +1102,7 @@ static void fork_session(struct login_context *cxt)
                exit(EXIT_FAILURE);
 
        /*
-        * Problem: if the user's shell is a shell like ash that doesnt do
+        * Problem: if the user's shell is a shell like ash that doesn't do
         * setsid() or setpgrp(), then a ctrl-\, sending SIGQUIT to every
         * process in the pgrp, will kill us.
         */
index c528e8ec3f42af46ff6f78adbe0db793851b68ec..dc1e68f3b230385a1ae28f93c94ce580e8ae78bd 100644 (file)
@@ -85,7 +85,7 @@ devices previously scanned but not necessarily available at this time), specify
 .B \-d
 Don't encode non-printing characters. The non-printing characters are encoded
 by ^ and M- notation by default. Note that \fB-o udev\fR output format uses
-a diffrent encoding and this encoding cannot be disabled.
+a different encoding and this encoding cannot be disabled.
 .TP
 .B \-g
 Perform a garbage collection pass on the blkid cache to remove
index 3793c524fc88316a31d37c497db9ce59ae15fb57..6a7991f8724497633fe4fbecdd39a0e9884b304a 100644 (file)
@@ -580,7 +580,7 @@ done:
        if (!nvals)
                return 2;       /* nothing detected */
 
-       return 0;               /* sucess */
+       return 0;               /* success */
 }
 
 /* converts comma separated list to BLKID_USAGE_* mask */
index 223ab7afd0dc8ffd1d52397d6292531e3565e613..b4c4286d0ab3768566c03db90c843da34cc8c344 100644 (file)
@@ -860,7 +860,7 @@ filesystem that supports xattr labeling.
 The
 .BR rootcontext=
 option allows you to explicitly label the root inode of a FS being mounted
-before that FS or inode because visable to userspace. This was found to be
+before that FS or inode because visible to userspace. This was found to be
 useful for things like stateless linux.
 
 Note that kernel rejects any remount request that includes the context
index de4b3abc60883325c5969fa814bc8279216034bb..b47fede9641629cad239642c7631b74b18558fad 100644 (file)
@@ -113,7 +113,7 @@ struct dmesg_control {
        /*
         * For the --file option we mmap whole file. The unnecessary (already
         * printed) pages are always unmapped. The result is that we have in
-        * memory only the currenly used page(s).
+        * memory only the currently used page(s).
         */
        char            *mmap_buff;
        size_t          pagesize;
index fc416482341dbdf22df2f91c400494c10381ad28..2fbca0888fb94f050cc675736e871c66c611b8d4 100644 (file)
@@ -301,7 +301,7 @@ void do_shm (char format)
        case STATUS:
                printf (_("------ Shared Memory Status --------\n"));
                /*
-                * TRANSLATORS: This output format is mantained for backward
+                * TRANSLATORS: This output format is maintained for backward
                 * compatibility as ipcs is used in scripts. For consistency
                 * with the rest, the translated form can follow this model:
                 *
index 1c2d9b61a0240423396deb410d2e22fd86f427cc..a4994b0cc6c5725c617c07de9c1e92a766f19a3a 100644 (file)
@@ -560,7 +560,7 @@ read_hypervisor(struct lscpu_desc *desc)
        }
 }
 
-/* add @set to the @ary, unnecesary set is deallocated. */
+/* add @set to the @ary, unnecessary set is deallocated. */
 static int add_cpuset_to_array(cpu_set_t **ary, int *items, cpu_set_t *set)
 {
        int i;
index 56897e9942f003a75b1b206ea76b50609517f3e6..ec0248b0d038d00107139b0168b13f0e03c889c7 100644 (file)
@@ -886,7 +886,7 @@ filesystem that supports xattr labeling.
 The
 .BR rootcontext=
 option allows you to explicitly label the root inode of a FS being mounted
-before that FS or inode because visable to userspace. This was found to be
+before that FS or inode because visible to userspace. This was found to be
 useful for things like stateless linux.
 
 Note that kernel rejects any remount request that includes the context
index 299ac08b7cd4b8dfcc70a2b8c8ee9c7684639779..65e3d20f58d583cfeaec81a15a42e1d1db303e8e 100644 (file)
@@ -3,7 +3,7 @@
 # Copyright (C) 2008-2009 Karel Zak <kzak@redhat.com>
 #
 # This script makes a copy of relevant files from /sys and /proc.
-# The files are usefull for lscpu(1) regression tests.
+# The files are useful for lscpu(1) regression tests.
 #
 progname=$(basename $0)
 
index aa1e4cc5c985059ae3a6e93c091d853d2368533c..519679143545fb3afac86f605c0a69ba1c5f59ef 100644 (file)
@@ -1574,7 +1574,7 @@ void do_shell (char *filename)
 }
 
 /*
-** Search for nth ocurrence of regular expression contained in buf in the file
+** Search for nth occurrence of regular expression contained in buf in the file
 */
 
 void search(char buf[], FILE *file, register int n)
@@ -2128,7 +2128,7 @@ reset_tty () {
     if (no_tty)
        return;
     if (pstate) {
-       tputs(ULexit, fileno(stdout), ourputch);        /* putchar - if that isnt a macro */
+       tputs(ULexit, fileno(stdout), ourputch);        /* putchar - if that isn't a macro */
        fflush(stdout);
        pstate = 0;
     }
index c15e48091e4b7f18f33d0230a639888d7f9e1436..d08ca9a11a7c28c85987087451bc9272d8ccaa67 100644 (file)
@@ -173,7 +173,7 @@ int main(int argc, char **argv)
        /*
         * FIXME: why terminal type is lpr when command begins with c and has
         * no terminal? If this behavior can be explained please insert
-        * refrence or remove the code. In case this truly is desired command
+        * reference or remove the code. In case this truly is desired command
         * behavior this should be mentioned in manual page.
         */
        if (termtype == NULL || (argv[0][0] == 'c' && !isatty(STDOUT_FILENO)))