Fix typos found by misspellings

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>
This commit is contained in:
Bernhard Voelker 2012-04-20 00:10:44 +02:00 committed by Karel Zak
parent 8d95e4ee61
commit 455fe9a075
32 changed files with 41 additions and 41 deletions

View 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
-----

View 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.

View 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

View File

@ -415,7 +415,7 @@
\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:

View 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

View 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"));

View 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

View 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

View 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'.

View 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.
*/
/*

View 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

View 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.

View 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

View 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>

View 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)

View 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.

View 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,

View File

@ -26,13 +26,13 @@
* @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:

View 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)
{

View 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!
*

View 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!
*

View 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.
*/

View 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

View 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 */

View 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

View 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;

View 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:
*

View 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;

View 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

View 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)

View 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;
}

View 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)))