* [PATCH 0/3] e2fsprogs: Fixes typos in code and docs. @ 2017-10-14 18:44 Sebastian Rasmussen 2017-10-14 18:44 ` [PATCH 1/3] Fix typos in error messages and documentation Sebastian Rasmussen ` (2 more replies) 0 siblings, 3 replies; 7+ messages in thread From: Sebastian Rasmussen @ 2017-10-14 18:44 UTC (permalink / raw) To: tytso; +Cc: linux-ext4, Sebastian Rasmussen While reading the manpage for resize2fs I came a across a typo, so I fixed it along with other typos in user-visible error messages and docs. The next patch addresses non-user visible typos, i.e. in code comments or docs aimed at developers. Finally, for completeness, I fixed any typos in changelogs and release notes. Perhaps you prefer these old files to be kept untouched, so that patch is separate. Since this is my first patch to e2fsprogs, so please advice me if I've made a mistake or two somewhere. / Sebastian PS. When updating translations it is Swedish, not Sweedish. :) Sebastian Rasmussen (3): Fix typos in error messages and documentation. Fix typos in code comments and developer docs. Fix historic typos in changelogs and release notes. INSTALL | 2 +- INSTALL.elfbin | 2 +- RELEASE-NOTES | 388 ++++++++++++++++++------------------- TODO | 4 +- aclocal.m4 | 4 +- configure.ac | 6 +- contrib/add_ext4_encrypt.c | 2 +- contrib/android/basefs_allocator.c | 2 +- contrib/android/perms.c | 4 +- debian/changelog | 154 +++++++-------- debian/rules | 2 +- debian/uuid-dev.README.Debian | 4 +- debugfs/Makefile.in | 2 +- debugfs/debugfs.8.in | 2 +- debugfs/htree.c | 2 +- debugfs/logdump.c | 2 +- debugfs/set_fields.c | 2 +- debugfs/util.c | 2 +- doc/libext2fs.texinfo | 14 +- e2fsck/CHANGES | 2 +- e2fsck/e2fsck.conf.5.in | 8 +- e2fsck/message.c | 2 +- e2fsck/pass1.c | 6 +- e2fsck/pass1b.c | 2 +- e2fsck/pass2.c | 4 +- e2fsck/pass3.c | 2 +- e2fsck/pass5.c | 2 +- e2fsck/problem.c | 6 +- e2fsck/problem.h | 10 +- e2fsck/recovery.c | 4 +- e2fsck/region.c | 2 +- e2fsck/revoke.c | 2 +- e2fsck/unix.c | 2 +- e2fsck/util.c | 2 +- ext2ed/README | 6 +- ext2ed/dir_com.c | 2 +- ext2ed/disk.c | 4 +- ext2ed/doc/ext2ed-design.sgml | 12 +- ext2ed/doc/ext2fs-overview.sgml | 8 +- ext2ed/doc/user-guide.sgml | 6 +- ext2ed/ext2.descriptors | 2 +- ext2ed/ext2ed.conf.in | 4 +- ext2ed/ext2ed.h | 4 +- ext2ed/general_com.c | 4 +- ext2ed/init.c | 8 +- ext2ed/main.c | 10 +- intl/dcigettext.c | 2 +- intl/l10nflist.c | 2 +- intl/libgettext.h | 2 +- intl/xsize.h | 2 +- lib/blkid/dev.c | 2 +- lib/blkid/libblkid.3.in | 2 +- lib/blkid/probe.h | 2 +- lib/blkid/tag.c | 2 +- lib/e2p/e2p.pc.in | 2 +- lib/et/com_err.texinfo | 4 +- lib/et/com_right.c | 2 +- lib/et/test_cases/heimdal2.c | 2 +- lib/et/test_cases/heimdal2.et | 2 +- lib/ext2fs/Makefile.in | 2 +- lib/ext2fs/alloc_tables.c | 2 +- lib/ext2fs/bb_inode.c | 2 +- lib/ext2fs/bitops.c | 2 +- lib/ext2fs/blkmap64_rb.c | 2 +- lib/ext2fs/ext2_fs.h | 4 +- lib/ext2fs/ext2fs.h | 4 +- lib/ext2fs/ext3_extents.h | 2 +- lib/ext2fs/get_pathname.c | 2 +- lib/ext2fs/inline_data.c | 8 +- lib/ext2fs/inode.c | 2 +- lib/ext2fs/nt_io.c | 8 +- lib/ext2fs/rbtree.h | 2 +- lib/ext2fs/res_gdt.c | 2 +- lib/ext2fs/tdb.c | 14 +- lib/ext2fs/undo_io.c | 2 +- lib/ss/ct_c.sed | 4 +- lib/support/profile.c | 2 +- lib/support/profile_helpers.c | 2 +- lib/support/quotaio.h | 2 +- lib/support/quotaio_tree.h | 2 +- lib/uuid/gen_uuid_nt.c | 2 +- lib/uuid/uuid_compare.3.in | 2 +- lib/uuid/uuid_generate.3.in | 4 +- misc/Makefile.in | 2 +- misc/chattr.1.in | 2 +- misc/create_inode.c | 2 +- misc/e2image.c | 2 +- misc/e4crypt.c | 2 +- misc/e4defrag.c | 4 +- misc/findsuper.c | 4 +- misc/fsck.c | 2 +- misc/fsck.h | 2 +- misc/logsave.c | 2 +- misc/mke2fs.8.in | 2 +- misc/mke2fs.c | 2 +- misc/mke2fs.conf.5.in | 2 +- misc/tune2fs.h | 4 +- resize/extent.c | 2 +- resize/main.c | 2 +- resize/online.c | 2 +- resize/resize2fs.8.in | 2 +- resize/resize2fs.c | 14 +- resize/resize2fs.h | 2 +- resize/sim_progress.c | 2 +- resize/test_extent.c | 2 +- util/gen-tarball.in | 2 +- util/subst.c | 2 +- util/symlinks.c | 2 +- 108 files changed, 451 insertions(+), 451 deletions(-) -- 2.14.2 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/3] Fix typos in error messages and documentation. 2017-10-14 18:44 [PATCH 0/3] e2fsprogs: Fixes typos in code and docs Sebastian Rasmussen @ 2017-10-14 18:44 ` Sebastian Rasmussen 2017-10-14 22:14 ` Andreas Dilger 2017-10-14 18:44 ` [PATCH 2/3] Fix typos in code comments and developer docs Sebastian Rasmussen 2017-10-16 3:23 ` [PATCH 0/3] e2fsprogs: Fixes typos in code and docs Theodore Ts'o 2 siblings, 1 reply; 7+ messages in thread From: Sebastian Rasmussen @ 2017-10-14 18:44 UTC (permalink / raw) To: tytso; +Cc: linux-ext4, Sebastian Rasmussen Signed-off-by: Sebastian Rasmussen <sebras@gmail.com> --- contrib/android/perms.c | 4 ++-- debugfs/debugfs.8.in | 2 +- debugfs/htree.c | 2 +- doc/libext2fs.texinfo | 14 +++++++------- e2fsck/e2fsck.conf.5.in | 8 ++++---- e2fsck/revoke.c | 2 +- ext2ed/disk.c | 2 +- ext2ed/doc/ext2ed-design.sgml | 12 ++++++------ ext2ed/doc/ext2fs-overview.sgml | 8 ++++---- ext2ed/doc/user-guide.sgml | 6 +++--- ext2ed/ext2.descriptors | 2 +- ext2ed/general_com.c | 4 ++-- ext2ed/init.c | 6 +++--- lib/blkid/libblkid.3.in | 2 +- lib/e2p/e2p.pc.in | 2 +- lib/et/com_err.texinfo | 4 ++-- lib/et/test_cases/heimdal2.c | 2 +- lib/et/test_cases/heimdal2.et | 2 +- lib/ext2fs/inline_data.c | 6 +++--- lib/uuid/uuid_compare.3.in | 2 +- lib/uuid/uuid_generate.3.in | 4 ++-- misc/chattr.1.in | 2 +- misc/mke2fs.8.in | 2 +- misc/mke2fs.c | 2 +- misc/mke2fs.conf.5.in | 2 +- resize/resize2fs.8.in | 2 +- 26 files changed, 53 insertions(+), 53 deletions(-) diff --git a/contrib/android/perms.c b/contrib/android/perms.c index 08fb8614..b9b2463f 100644 --- a/contrib/android/perms.c +++ b/contrib/android/perms.c @@ -116,7 +116,7 @@ static errcode_t set_perms_and_caps(ext2_filsys fs, ext2_ino_t ino, retval = ext2fs_write_inode(fs, ino, &inode); if (retval) { com_err(__func__, retval, - _("while writting inode %u"), ino); + _("while writing inode %u"), ino); return retval; } } @@ -167,7 +167,7 @@ static errcode_t set_timestamp(ext2_filsys fs, ext2_ino_t ino, retval = ext2fs_write_inode(fs, ino, &inode); if (retval) { com_err(__func__, retval, - _("while writting inode %u"), ino); + _("while writing inode %u"), ino); goto end; } diff --git a/debugfs/debugfs.8.in b/debugfs/debugfs.8.in index 87d487e7..55abd718 100644 --- a/debugfs/debugfs.8.in +++ b/debugfs/debugfs.8.in @@ -226,7 +226,7 @@ Clear the contents of the inode .IR filespec . .TP .BI copy_inode " source_inode destination_inode" -Copy the conents of the inode structure in +Copy the contents of the inode structure in .I source_inode and use it to overwrite the inode structure at .IR destination_inode . diff --git a/debugfs/htree.c b/debugfs/htree.c index 8c18666d..cf7d78aa 100644 --- a/debugfs/htree.c +++ b/debugfs/htree.c @@ -340,7 +340,7 @@ void do_dx_hash(int argc, char *argv[]) err = ext2fs_dirhash(hash_version, argv[optind], strlen(argv[optind]), hash_seed, &hash, &minor_hash); if (err) { - com_err(argv[0], err, "while caclulating hash"); + com_err(argv[0], err, "while calculating hash"); return; } printf("Hash of %s is 0x%0x (minor 0x%0x)\n", argv[optind], diff --git a/doc/libext2fs.texinfo b/doc/libext2fs.texinfo index 8f046510..c645d82a 100644 --- a/doc/libext2fs.texinfo +++ b/doc/libext2fs.texinfo @@ -146,7 +146,7 @@ There are two functions which create a filesystem handle, @code{ext2fs_open} and @code{ext2fs_initialize}. The filesystem can also be closed using @code{ext2fs_close}, and any -changes to the superblock and group descripts can be written out to disk +changes to the superblock and group descriptors can be written out to disk using @code{ext2fs_flush}. @menu @@ -183,7 +183,7 @@ image. The @var{block_size} parameter specifies the block size used by the filesystem. Normally this is determined automatically from the -filesystem uperblock. If @var{block_size} is non-zero, it must match +filesystem superblock. If @var{block_size} is non-zero, it must match the block size found in the superblock, or the error @code{EXT2_ET_UNEXPECTED_BLOCK_SIZE} will be returned. The @var{block_size} parameter is also used to help fund the superblock when @@ -625,7 +625,7 @@ The @var{flags} parameter controls how the iterator will function: @table @samp @item BLOCK_FLAG_HOLE -This flag indiciates that the interator function should be called on +This flag indicates that the interator function should be called on blocks where the block number is zero (also known as ``holes''.) It is also known as BLOCK_FLAG_APPEND, since it is also used by functions such as ext2fs_expand_dir() to add a new block to an inode. @@ -633,7 +633,7 @@ such as ext2fs_expand_dir() to add a new block to an inode. @item BLOCK_FLAG_DEPTH_TRAVERSE This flag indicates that the iterator function for the indirect, doubly indirect, etc. blocks should be called after all -of the blocks containined in the indirect blocks are processed. +of the blocks contained in the indirect blocks are processed. This is useful if you are going to be deallocating blocks from an inode. @@ -1175,7 +1175,7 @@ in block @var{blk}. @deftypefun errcode_t ext2fs_set_dir_block (ext2_dblist @var{dblist}, ext2_ino_t @var{ino}, blk_t @var{blk}, int @var{blockcnt}) Change an entry in the dblist data structure; this changes the location -of block number @var{blockcnt} of directory indoe @var{ino} to be block +of block number @var{blockcnt} of directory inode @var{ino} to be block @var{blk}. @end deftypefun @@ -1208,12 +1208,12 @@ the inode is referenced according to the inode structure. This abstraction is designed to be extremely efficient for storing this sort of information, by taking advantage of the following properties of inode counts, namely (1) inode counts are very often zero (because -the inode is currrently not in use), and (2) many files have a inode +the inode is currently not in use), and (2) many files have a inode count of 1 (because they are a file which has no additional hard links). @deftypefun errcode_t ext2fs_create_icount2 (ext2_filsys @var{fs}, int @var{flags}, int @var{size}, ext2_icount_t @var{hint}, ext2_icount_t *@var{ret}) -Creates an icount stucture for a filesystem @var{fs}, with initial space +Creates an icount structure for a filesystem @var{fs}, with initial space for @var{size} inodes whose count is greater than 1. The @var{flags} parameter is either 0 or @code{EXT2_ICOUNT_OPT_INCREMENT}, which indicates that icount structure should be able to increment inode counts diff --git a/e2fsck/e2fsck.conf.5.in b/e2fsck/e2fsck.conf.5.in index d8205bcf..a727932b 100644 --- a/e2fsck/e2fsck.conf.5.in +++ b/e2fsck/e2fsck.conf.5.in @@ -178,17 +178,17 @@ relation. This relation contains an alternate directory that will be used if the directory specified by .I log_dir -is not available or is not writeable. +is not available or is not writable. .TP .I log_dir_wait If this boolean relation is true, them if the directories specified by .I log_dir or .I log_dir_fallback -are not available or are not yet writeable, e2fsck will save the output +are not available or are not yet writable, e2fsck will save the output in a memory buffer, and a child process will periodically test to see if the log directory has become available after the boot sequence has -mounted the requiste file system for reading/writing. This implements the +mounted the requested file system for reading/writing. This implements the functionality provided by .BR logsave (8) for e2fsck log files. @@ -413,7 +413,7 @@ The name of the user running e2fsck. .B %U This percent expression does not expand to anything, but it signals that any following date or time expressions should be expressed in UTC time -instead of the local timzeone. +instead of the local timezone. .TP .B %y The last two digits of the current year (00..99) diff --git a/e2fsck/revoke.c b/e2fsck/revoke.c index 64b897a7..f7254713 100644 --- a/e2fsck/revoke.c +++ b/e2fsck/revoke.c @@ -427,7 +427,7 @@ int journal_cancel_revoke(handle_t *handle, struct journal_head *jh) int did_revoke = 0; /* akpm: debug */ struct buffer_head *bh = jh2bh(jh); - jbd_debug(4, "journal_head %p, cancelling revoke\n", jh); + jbd_debug(4, "journal_head %p, canceling revoke\n", jh); /* Is the existing Revoke bit valid? If so, we trust it, and * only perform the full cancel if the revoke bit is set. If diff --git a/ext2ed/disk.c b/ext2ed/disk.c index 5c243127..70ece943 100644 --- a/ext2ed/disk.c +++ b/ext2ed/disk.c @@ -86,7 +86,7 @@ If logging is enabled, we log the change before writing it to the device. char temp [80]; if (!write_access) { - wprintw (command_win,"Error - Write access not aviable (use enablewrite)\n"); + wprintw (command_win,"Error - Write access not available (use enablewrite)\n"); return (0); } diff --git a/ext2ed/doc/ext2ed-design.sgml b/ext2ed/doc/ext2ed-design.sgml index 7841358a..e8052a90 100644 --- a/ext2ed/doc/ext2ed-design.sgml +++ b/ext2ed/doc/ext2ed-design.sgml @@ -83,7 +83,7 @@ subjects. I can think of two ways in which I could have made my project: <Para> The "Engineer" way -Learn the subject throughly before I get to the programming itself. +Learn the subject thoroughly before I get to the programming itself. Then, I could easily see the entire picture and select the best course of action, taking all the factors into account. </Para> @@ -94,7 +94,7 @@ course of action, taking all the factors into account. The "Explorer - Progressive" way. Jump immediately into the cold water - Start programming and -learning the material parallelly. +learning the material in parallel. </Para> </ListItem> @@ -418,7 +418,7 @@ superblock was set exactly to the above value. <Para> It seems that starting with the <Literal remap="tt">superblock</Literal> was a good bet - Just from the list of variables, one can learn a lot. I didn't understand all of them -at the time, but it seemed that the following keywords were repeating themself +at the time, but it seemed that the following keywords were repeating themselves in various variables: <ItemizedList> @@ -710,8 +710,8 @@ int dispatch (char *command_line) <Title>Source files in EXT2ED</Title> <Para> -The project was getting large enough to be splitted into several source -files. I splitted the source as much as I could into self-contained +The project was getting large enough to be split into several source +files. I split the source as much as I could into self-contained source files. The source files consist of the following blocks: <ItemizedList> @@ -1156,7 +1156,7 @@ according to the source division outlined above, in inode_com.c) will store the necessary information about the inode in a specific structure of type struct_file_info which will be available for use by the file_com.c functions. Only then it will set the type to file. This is also the reason -that a direct asynchronic set of the object type to a file through a settype +that a direct asynchronous set of the object type to a file through a settype command will fail - The above data structure will not be initialized properly because the user never was at the inode of the file. diff --git a/ext2ed/doc/ext2fs-overview.sgml b/ext2ed/doc/ext2fs-overview.sgml index 900c3930..0d54f07c 100644 --- a/ext2ed/doc/ext2fs-overview.sgml +++ b/ext2ed/doc/ext2fs-overview.sgml @@ -533,7 +533,7 @@ allocated blocks. </Para> <Para> -It was found experimently that many of the files in the filesystem are +It was found experimentally that many of the files in the filesystem are actually quite small. To take advantage of this effect, the kernel provides storage of up to 12 block numbers in the inode itself. Those blocks are called <Literal remap="tt">direct blocks</Literal>. The advantage is that once the kernel has the @@ -692,7 +692,7 @@ options. They determine the type of the "file" to which the inode belongs: <Title>Time and date</Title> <Para> -Linux records the last time in which various operations occured with the +Linux records the last time in which various operations occurred with the file. The time and date are saved in the standard C library format - The number of seconds which passed since 00:00:00 GMT, January 1, 1970. The following times are recorded: @@ -1087,7 +1087,7 @@ the length of the file name. <Para> The variable <Literal remap="tt">rec_len</Literal> is provided because the directory entries are padded with zeroes so that the next entry will be in an offset which is -a multiplition of 4. The resulting directory entry size is stored in +a multiplication of 4. The resulting directory entry size is stored in <Literal remap="tt">rec_len</Literal>. If the directory entry is the last in the block, it is padded with zeroes till the end of the block, and rec_len is updated accordingly. @@ -1402,7 +1402,7 @@ then zero s_mnt_count. <Literal remap="tt">s_max_mnt E2fsck also records the last time in which the file system was checked in the <Literal remap="tt">s_lastcheck</Literal> variable. The user tunable parameter <Literal remap="tt">s_checkinterval</Literal> will contain the number of seconds which are allowed -to pass since <Literal remap="tt">s_lastcheck</Literal> until a check is reforced. A value of +to pass since <Literal remap="tt">s_lastcheck</Literal> until a check is forced. A value of <Literal remap="tt">0</Literal> disables time-based check. </Para> diff --git a/ext2ed/doc/user-guide.sgml b/ext2ed/doc/user-guide.sgml index 42887eff..1e8f3cdf 100644 --- a/ext2ed/doc/user-guide.sgml +++ b/ext2ed/doc/user-guide.sgml @@ -506,8 +506,8 @@ itself the direct blocks, indirect blocks, ..., while still preserving the actual view of the exact block usage of the file. </Screen> -The point is that the "tour" of the filesystem will now be synchronic rather -than asynchronic - Each object has the "links" to pass between connected +The point is that the "tour" of the filesystem will now be synchronous rather +than asynchronous - Each object has the "links" to pass between connected logical structures, and special fine-tuned functions to deal with it. </Para> @@ -855,7 +855,7 @@ The <Command>setdevice</Command> command is described at section <XRef LinkEnd=" Syntax: setoffset [block || type] [+|-]offset </Screen> -The <Command>setoffset</Command> command is used to move asynchronically inside the file +The <Command>setoffset</Command> command is used to move asynchronously inside the file system. It is considered a low level command, and usually should not be used when editing an ext2 filesystem, simply because movement is better utilized through the specific ext2 commands. diff --git a/ext2ed/ext2.descriptors b/ext2ed/ext2.descriptors index b1ac4c4b..e356f4cd 100644 --- a/ext2ed/ext2.descriptors +++ b/ext2ed/ext2.descriptors @@ -5,7 +5,7 @@ Most of this file is just copied from the ext2 main include file. My parser is very primitive - It only searches for the struct keywords, and uses the variables in there. The rest of the file is just ignored. -You will find at the end a few additional types which are not aviable in +You will find at the end a few additional types which are not available in the original include file, such as the types "file" and "dir". They have no variables, but are necessary due to the way ext2ed binds C commands to specific types. diff --git a/ext2ed/general_com.c b/ext2ed/general_com.c index c9b2ffc4..aa274e33 100644 --- a/ext2ed/general_com.c +++ b/ext2ed/general_com.c @@ -90,7 +90,7 @@ void help (char *command_line) wprintw (show_pad,"EXT2ED ver %s (%s)\n",E2FSPROGS_VERSION, E2FSPROGS_DATE); wprintw (show_pad,"Copyright (C) 1995 Gadi Oxman\n"); wprintw (show_pad,"Reviewed 2001 Christian Bac\n"); - wprintw (show_pad,"Modified and enchanced by Theodore Ts'o, 2002\n"); + wprintw (show_pad,"Modified and enhanced by Theodore Ts'o, 2002\n"); wprintw (show_pad,"EXT2ED is hereby placed under the terms of the GNU General Public License.\n\n"); wprintw (show_pad,"EXT2ED was programmed as a student project in the software laboratory\n"); wprintw (show_pad,"of the faculty of electrical engineering in the\n"); @@ -140,7 +140,7 @@ void detailed_help (char *text) refresh_show_pad ();return; } - wprintw (show_pad,"Error - Command %s not aviable now\n",text); + wprintw (show_pad,"Error - Command %s not available now\n",text); refresh_show_pad ();return; } diff --git a/ext2ed/init.c b/ext2ed/init.c index 7d9b526f..718c0d08 100644 --- a/ext2ed/init.c +++ b/ext2ed/init.c @@ -80,8 +80,8 @@ void add_general_commands (void) add_user_command (&general_commands,"help","EXT2ED help system",help); add_user_command (&general_commands,"set","Changes a variable in the current object",set); add_user_command (&general_commands,"setdevice","Selects the filesystem block device (e.g. /dev/hda1)",set_device); - add_user_command (&general_commands,"setoffset","Moves asynchronicly in the filesystem",set_offset); - add_user_command (&general_commands,"settype","Tells EXT2ED how to interpert the current object",set_type); + add_user_command (&general_commands,"setoffset","Moves asynchronously in the filesystem",set_offset); + add_user_command (&general_commands,"settype","Tells EXT2ED how to interpret the current object",set_type); add_user_command (&general_commands,"show","Displays the current object",show); add_user_command (&general_commands,"pgup","Scrolls data one page up",pgup); add_user_command (&general_commands,"pgdn","Scrolls data one page down",pgdn); @@ -316,7 +316,7 @@ Set specific type user commands. } if (strcmp ((ptr->name),"ext2_group_desc")==0) { - add_user_command (&ptr->type_commands,"next","Pass to the next block group decriptor",type_ext2_group_desc___next); + add_user_command (&ptr->type_commands,"next","Pass to the next block group descriptor",type_ext2_group_desc___next); add_user_command (&ptr->type_commands,"prev","Pass to the previous group descriptor",type_ext2_group_desc___prev); add_user_command (&ptr->type_commands,"entry","Pass to a specific group descriptor",type_ext2_group_desc___entry); add_user_command (&ptr->type_commands,"show","Shows the current group descriptor",type_ext2_group_desc___show); diff --git a/lib/blkid/libblkid.3.in b/lib/blkid/libblkid.3.in index bd24cb1a..2fea3a9b 100644 --- a/lib/blkid/libblkid.3.in +++ b/lib/blkid/libblkid.3.in @@ -47,7 +47,7 @@ so the use of the cache file is in this situation. .SH AUTHOR .B libblkid -was written by Andreas Dilger for the ext2 filesystem utilties, with input +was written by Andreas Dilger for the ext2 filesystem utilities, with input from Ted Ts'o. The library was subsequently heavily modified by Ted Ts'o. .SH FILES .TP diff --git a/lib/e2p/e2p.pc.in b/lib/e2p/e2p.pc.in index c171ae67..150b089a 100644 --- a/lib/e2p/e2p.pc.in +++ b/lib/e2p/e2p.pc.in @@ -4,7 +4,7 @@ libdir=@libdir@ includedir=@includedir@ Name: e2p -Description: Ext2fs userpace programs utility library +Description: Ext2fs userspace programs utility library Version: @E2FSPROGS_VERSION@ Requires: Cflags: -I${includedir}/e2p -I${includedir} diff --git a/lib/et/com_err.texinfo b/lib/et/com_err.texinfo index c9d3fcaf..3e7ae32c 100644 --- a/lib/et/com_err.texinfo +++ b/lib/et/com_err.texinfo @@ -394,7 +394,7 @@ any event, any invariant which the library assumes must be maintained. In general, it is not in the domain of non user-interface library routines to write error messages to the user's terminal, or halt the process. Such forms of ``error handling'' should be reserved for -failures of internal invariants and consistancy checks only, as it +failures of internal invariants and consistency checks only, as it provides the user of the library no way to clean up for himself in the event of total failure. @@ -441,7 +441,7 @@ available, try again later,'' or it may try a different server. Cleanup which is typically necessary may include, but not be limited to, freeing allocated memory which will not be needed any more, -unlocking concurrancy locks, dropping reference counts, closing file +unlocking concurrency locks, dropping reference counts, closing file descriptors, or otherwise undoing anything which the procedure did up to this point. When there are a lot of things which can go wrong, it is generally good to write one block of error-handling code which is diff --git a/lib/et/test_cases/heimdal2.c b/lib/et/test_cases/heimdal2.c index a8d4c111..d2ad5726 100644 --- a/lib/et/test_cases/heimdal2.c +++ b/lib/et/test_cases/heimdal2.c @@ -14,7 +14,7 @@ static const char * const text[] = { N_("Bad key supplied"), N_("Can't encrypt data"), N_("Cannot encode/decode authentication info"), - N_("Principal attemping change is in wrong realm"), + N_("Principal attempting change is in wrong realm"), N_("Packet is too large"), N_("Version number is incorrect"), N_("Checksum does not match"), diff --git a/lib/et/test_cases/heimdal2.et b/lib/et/test_cases/heimdal2.et index 7a247c55..703600c5 100644 --- a/lib/et/test_cases/heimdal2.et +++ b/lib/et/test_cases/heimdal2.et @@ -18,7 +18,7 @@ ec KADM_NO_CRED, "Unable to fetch credentials" ec KADM_BAD_KEY, "Bad key supplied" ec KADM_NO_ENCRYPT, "Can't encrypt data" ec KADM_NO_AUTH, "Cannot encode/decode authentication info" -ec KADM_WRONG_REALM, "Principal attemping change is in wrong realm" +ec KADM_WRONG_REALM, "Principal attempting change is in wrong realm" ec KADM_NO_ROOM, "Packet is too large" ec KADM_BAD_VER, "Version number is incorrect" ec KADM_BAD_CHK, "Checksum does not match" diff --git a/lib/ext2fs/inline_data.c b/lib/ext2fs/inline_data.c index 0c1eef6c..53016fdb 100644 --- a/lib/ext2fs/inline_data.c +++ b/lib/ext2fs/inline_data.c @@ -603,7 +603,7 @@ static errcode_t file_test(ext2_filsys fs) /* create a new file */ retval = ext2fs_new_inode(fs, 2, 010755, 0, &newfile); if (retval) { - com_err("file_test", retval, "while allocaing a new inode"); + com_err("file_test", retval, "while allocating a new inode"); return 1; } @@ -613,7 +613,7 @@ static errcode_t file_test(ext2_filsys fs) inode.i_mode = LINUX_S_IFREG; retval = ext2fs_write_new_inode(fs, newfile, &inode); if (retval) { - com_err("file_test", retval, "while writting a new inode"); + com_err("file_test", retval, "while writing a new inode"); return 1; } @@ -801,7 +801,7 @@ int main(int argc, char *argv[]) retval = ext2fs_allocate_tables(fs); if (retval) { com_err("setup", retval, - "while allocating tables for test filesysmte"); + "while allocating tables for test filesystem"); exit(1); } diff --git a/lib/uuid/uuid_compare.3.in b/lib/uuid/uuid_compare.3.in index 4807f3a8..67bc9b9e 100644 --- a/lib/uuid/uuid_compare.3.in +++ b/lib/uuid/uuid_compare.3.in @@ -47,7 +47,7 @@ to each other. .SH RETURN VALUE Returns an integer less than, equal to, or greater than zero if .I uu1 -is found, respectively, to be lexigraphically less than, equal, or +is found, respectively, to be lexicographical less than, equal, or greater than .IR uu2 . .SH AUTHOR diff --git a/lib/uuid/uuid_generate.3.in b/lib/uuid/uuid_generate.3.in index f44900cd..e6be9685 100644 --- a/lib/uuid/uuid_generate.3.in +++ b/lib/uuid/uuid_generate.3.in @@ -58,7 +58,7 @@ function forces the use of the all-random UUID format, even if a high-quality random number generator (i.e., .IR /dev/urandom ) is not available, in which case a pseudo-random -generator will be subsituted. Note that the use of a pseudo-random +generator will be substituted. Note that the use of a pseudo-random generator may compromise the uniqueness of UUID's generated in this fashion. .sp @@ -75,7 +75,7 @@ function only uses this algorithm if a high-quality source of randomness is not available. .sp The UUID is 16 bytes (128 bits) long, which gives approximately 3.4x10^38 -unique values (there are approximately 10^80 elemntary particles in +unique values (there are approximately 10^80 elementary particles in the universe according to Carl Sagan's .IR Cosmos ). The new UUID can reasonably be considered unique among all UUIDs created diff --git a/misc/chattr.1.in b/misc/chattr.1.in index 44ee3370..967b8088 100644 --- a/misc/chattr.1.in +++ b/misc/chattr.1.in @@ -156,7 +156,7 @@ although it can be displayed by .PP A directory with the 'P' attribute set will enforce a hierarchical structure for project id's. This means that files and directory created -in the directory will inhert the project id of the directory, rename +in the directory will inherit the project id of the directory, rename operations are constrained so when a file or directory is moved into another directory, that the project id's much match. In addition, a hard link to file can only be created when the project id for the file diff --git a/misc/mke2fs.8.in b/misc/mke2fs.8.in index dc86e67f..766bf529 100644 --- a/misc/mke2fs.8.in +++ b/misc/mke2fs.8.in @@ -433,7 +433,7 @@ be smaller than the blocksize of the filesystem, since in that case more inodes would be made than can ever be used. Be warned that it is not possible to change this ratio on a filesystem after it is created, so be careful deciding the correct value for this parameter. Note that resizing -a filesystem changes the numer of inodes to maintain this ratio. +a filesystem changes the number of inodes to maintain this ratio. .TP .BI \-I " inode-size" Specify the size of each inode in bytes. diff --git a/misc/mke2fs.c b/misc/mke2fs.c index d585a9e2..cfb10bc4 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -2896,7 +2896,7 @@ int main (int argc, char *argv[]) if (ext2fs_has_feature_csum_seed(fs->super) && !ext2fs_has_feature_metadata_csum(fs->super)) { printf("%s", _("The metadata_csum_seed feature " - "requres the metadata_csum feature.\n")); + "requires the metadata_csum feature.\n")); exit(1); } diff --git a/misc/mke2fs.conf.5.in b/misc/mke2fs.conf.5.in index a8517c39..21a0c882 100644 --- a/misc/mke2fs.conf.5.in +++ b/misc/mke2fs.conf.5.in @@ -384,7 +384,7 @@ This relation indicates whether file systems with the feature enabled should be created with 0, 1, or 2 backup superblocks. .TP .I packed_meta_blocks -This boolean relation specifes whether the allocation bitmaps, inode +This boolean relation specifies whether the allocation bitmaps, inode table, and journal should be located at the beginning of the file system. .TP .I inode_ratio diff --git a/resize/resize2fs.8.in b/resize/resize2fs.8.in index 76434d74..3f0674ce 100644 --- a/resize/resize2fs.8.in +++ b/resize/resize2fs.8.in @@ -143,7 +143,7 @@ operation during an offline resize, so that the user can keep track of what the program is doing. .TP .B \-P -Print an extimate of the number of file system blocks in the file system +Print an estimate of the number of file system blocks in the file system if it is shrunk using .BR resize2fs 's .B \-M -- 2.14.2 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] Fix typos in error messages and documentation. 2017-10-14 18:44 ` [PATCH 1/3] Fix typos in error messages and documentation Sebastian Rasmussen @ 2017-10-14 22:14 ` Andreas Dilger 0 siblings, 0 replies; 7+ messages in thread From: Andreas Dilger @ 2017-10-14 22:14 UTC (permalink / raw) To: Sebastian Rasmussen; +Cc: tytso, linux-ext4 [-- Attachment #1: Type: text/plain, Size: 28566 bytes --] On Oct 14, 2017, at 12:44 PM, Sebastian Rasmussen <sebras@gmail.com> wrote: > > Signed-off-by: Sebastian Rasmussen <sebras@gmail.com> Thanks for the patch. Documentation is the oft-overlooked corner of software development, so it is nice when someone pays it some attention. Reviewed-by: Andreas Dilger <adilger@dilger.ca> > --- > contrib/android/perms.c | 4 ++-- > debugfs/debugfs.8.in | 2 +- > debugfs/htree.c | 2 +- > doc/libext2fs.texinfo | 14 +++++++------- > e2fsck/e2fsck.conf.5.in | 8 ++++---- > e2fsck/revoke.c | 2 +- > ext2ed/disk.c | 2 +- > ext2ed/doc/ext2ed-design.sgml | 12 ++++++------ > ext2ed/doc/ext2fs-overview.sgml | 8 ++++---- > ext2ed/doc/user-guide.sgml | 6 +++--- > ext2ed/ext2.descriptors | 2 +- > ext2ed/general_com.c | 4 ++-- > ext2ed/init.c | 6 +++--- > lib/blkid/libblkid.3.in | 2 +- > lib/e2p/e2p.pc.in | 2 +- > lib/et/com_err.texinfo | 4 ++-- > lib/et/test_cases/heimdal2.c | 2 +- > lib/et/test_cases/heimdal2.et | 2 +- > lib/ext2fs/inline_data.c | 6 +++--- > lib/uuid/uuid_compare.3.in | 2 +- > lib/uuid/uuid_generate.3.in | 4 ++-- > misc/chattr.1.in | 2 +- > misc/mke2fs.8.in | 2 +- > misc/mke2fs.c | 2 +- > misc/mke2fs.conf.5.in | 2 +- > resize/resize2fs.8.in | 2 +- > 26 files changed, 53 insertions(+), 53 deletions(-) > > diff --git a/contrib/android/perms.c b/contrib/android/perms.c > index 08fb8614..b9b2463f 100644 > --- a/contrib/android/perms.c > +++ b/contrib/android/perms.c > @@ -116,7 +116,7 @@ static errcode_t set_perms_and_caps(ext2_filsys fs, ext2_ino_t ino, > retval = ext2fs_write_inode(fs, ino, &inode); > if (retval) { > com_err(__func__, retval, > - _("while writting inode %u"), ino); > + _("while writing inode %u"), ino); > return retval; > } > } > @@ -167,7 +167,7 @@ static errcode_t set_timestamp(ext2_filsys fs, ext2_ino_t ino, > retval = ext2fs_write_inode(fs, ino, &inode); > if (retval) { > com_err(__func__, retval, > - _("while writting inode %u"), ino); > + _("while writing inode %u"), ino); > goto end; > } > > diff --git a/debugfs/debugfs.8.in b/debugfs/debugfs.8.in > index 87d487e7..55abd718 100644 > --- a/debugfs/debugfs.8.in > +++ b/debugfs/debugfs.8.in > @@ -226,7 +226,7 @@ Clear the contents of the inode > .IR filespec . > .TP > .BI copy_inode " source_inode destination_inode" > -Copy the conents of the inode structure in > +Copy the contents of the inode structure in > .I source_inode > and use it to overwrite the inode structure at > .IR destination_inode . > diff --git a/debugfs/htree.c b/debugfs/htree.c > index 8c18666d..cf7d78aa 100644 > --- a/debugfs/htree.c > +++ b/debugfs/htree.c > @@ -340,7 +340,7 @@ void do_dx_hash(int argc, char *argv[]) > err = ext2fs_dirhash(hash_version, argv[optind], strlen(argv[optind]), > hash_seed, &hash, &minor_hash); > if (err) { > - com_err(argv[0], err, "while caclulating hash"); > + com_err(argv[0], err, "while calculating hash"); > return; > } > printf("Hash of %s is 0x%0x (minor 0x%0x)\n", argv[optind], > diff --git a/doc/libext2fs.texinfo b/doc/libext2fs.texinfo > index 8f046510..c645d82a 100644 > --- a/doc/libext2fs.texinfo > +++ b/doc/libext2fs.texinfo > @@ -146,7 +146,7 @@ There are two functions which create a filesystem handle, > @code{ext2fs_open} and @code{ext2fs_initialize}. > > The filesystem can also be closed using @code{ext2fs_close}, and any > -changes to the superblock and group descripts can be written out to disk > +changes to the superblock and group descriptors can be written out to disk > using @code{ext2fs_flush}. > > @menu > @@ -183,7 +183,7 @@ image. > > The @var{block_size} parameter specifies the block size used by the > filesystem. Normally this is determined automatically from the > -filesystem uperblock. If @var{block_size} is non-zero, it must match > +filesystem superblock. If @var{block_size} is non-zero, it must match > the block size found in the superblock, or the error > @code{EXT2_ET_UNEXPECTED_BLOCK_SIZE} will be returned. The > @var{block_size} parameter is also used to help fund the superblock when > @@ -625,7 +625,7 @@ The @var{flags} parameter controls how the iterator will function: > @table @samp > > @item BLOCK_FLAG_HOLE > -This flag indiciates that the interator function should be called on > +This flag indicates that the interator function should be called on > blocks where the block number is zero (also known as ``holes''.) It is > also known as BLOCK_FLAG_APPEND, since it is also used by functions > such as ext2fs_expand_dir() to add a new block to an inode. > @@ -633,7 +633,7 @@ such as ext2fs_expand_dir() to add a new block to an inode. > @item BLOCK_FLAG_DEPTH_TRAVERSE > This flag indicates that the iterator function for the > indirect, doubly indirect, etc. blocks should be called after all > -of the blocks containined in the indirect blocks are processed. > +of the blocks contained in the indirect blocks are processed. > This is useful if you are going to be deallocating blocks from an > inode. > > @@ -1175,7 +1175,7 @@ in block @var{blk}. > @deftypefun errcode_t ext2fs_set_dir_block (ext2_dblist @var{dblist}, ext2_ino_t @var{ino}, blk_t @var{blk}, int @var{blockcnt}) > > Change an entry in the dblist data structure; this changes the location > -of block number @var{blockcnt} of directory indoe @var{ino} to be block > +of block number @var{blockcnt} of directory inode @var{ino} to be block > @var{blk}. > @end deftypefun > > @@ -1208,12 +1208,12 @@ the inode is referenced according to the inode structure. > This abstraction is designed to be extremely efficient for storing this > sort of information, by taking advantage of the following properties of > inode counts, namely (1) inode counts are very often zero (because > -the inode is currrently not in use), and (2) many files have a inode > +the inode is currently not in use), and (2) many files have a inode > count of 1 (because they are a file which has no additional hard links). > > @deftypefun errcode_t ext2fs_create_icount2 (ext2_filsys @var{fs}, int @var{flags}, int @var{size}, ext2_icount_t @var{hint}, ext2_icount_t *@var{ret}) > > -Creates an icount stucture for a filesystem @var{fs}, with initial space > +Creates an icount structure for a filesystem @var{fs}, with initial space > for @var{size} inodes whose count is greater than 1. The @var{flags} > parameter is either 0 or @code{EXT2_ICOUNT_OPT_INCREMENT}, which > indicates that icount structure should be able to increment inode counts > diff --git a/e2fsck/e2fsck.conf.5.in b/e2fsck/e2fsck.conf.5.in > index d8205bcf..a727932b 100644 > --- a/e2fsck/e2fsck.conf.5.in > +++ b/e2fsck/e2fsck.conf.5.in > @@ -178,17 +178,17 @@ relation. > This relation contains an alternate directory that will be used if the > directory specified by > .I log_dir > -is not available or is not writeable. > +is not available or is not writable. > .TP > .I log_dir_wait > If this boolean relation is true, them if the directories specified by > .I log_dir > or > .I log_dir_fallback > -are not available or are not yet writeable, e2fsck will save the output > +are not available or are not yet writable, e2fsck will save the output > in a memory buffer, and a child process will periodically test to see if > the log directory has become available after the boot sequence has > -mounted the requiste file system for reading/writing. This implements the > +mounted the requested file system for reading/writing. This implements the > functionality provided by > .BR logsave (8) > for e2fsck log files. > @@ -413,7 +413,7 @@ The name of the user running e2fsck. > .B %U > This percent expression does not expand to anything, but it signals that > any following date or time expressions should be expressed in UTC time > -instead of the local timzeone. > +instead of the local timezone. > .TP > .B %y > The last two digits of the current year (00..99) > diff --git a/e2fsck/revoke.c b/e2fsck/revoke.c > index 64b897a7..f7254713 100644 > --- a/e2fsck/revoke.c > +++ b/e2fsck/revoke.c > @@ -427,7 +427,7 @@ int journal_cancel_revoke(handle_t *handle, struct journal_head *jh) > int did_revoke = 0; /* akpm: debug */ > struct buffer_head *bh = jh2bh(jh); > > - jbd_debug(4, "journal_head %p, cancelling revoke\n", jh); > + jbd_debug(4, "journal_head %p, canceling revoke\n", jh); > > /* Is the existing Revoke bit valid? If so, we trust it, and > * only perform the full cancel if the revoke bit is set. If > diff --git a/ext2ed/disk.c b/ext2ed/disk.c > index 5c243127..70ece943 100644 > --- a/ext2ed/disk.c > +++ b/ext2ed/disk.c > @@ -86,7 +86,7 @@ If logging is enabled, we log the change before writing it to the device. > char temp [80]; > > if (!write_access) { > - wprintw (command_win,"Error - Write access not aviable (use enablewrite)\n"); > + wprintw (command_win,"Error - Write access not available (use enablewrite)\n"); > return (0); > } > > diff --git a/ext2ed/doc/ext2ed-design.sgml b/ext2ed/doc/ext2ed-design.sgml > index 7841358a..e8052a90 100644 > --- a/ext2ed/doc/ext2ed-design.sgml > +++ b/ext2ed/doc/ext2ed-design.sgml > @@ -83,7 +83,7 @@ subjects. I can think of two ways in which I could have made my project: > <Para> > The "Engineer" way > > -Learn the subject throughly before I get to the programming itself. > +Learn the subject thoroughly before I get to the programming itself. > Then, I could easily see the entire picture and select the best > course of action, taking all the factors into account. > </Para> > @@ -94,7 +94,7 @@ course of action, taking all the factors into account. > The "Explorer - Progressive" way. > > Jump immediately into the cold water - Start programming and > -learning the material parallelly. > +learning the material in parallel. > </Para> > </ListItem> > > @@ -418,7 +418,7 @@ superblock was set exactly to the above value. > <Para> > It seems that starting with the <Literal remap="tt">superblock</Literal> was a good bet - Just from > the list of variables, one can learn a lot. I didn't understand all of them > -at the time, but it seemed that the following keywords were repeating themself > +at the time, but it seemed that the following keywords were repeating themselves > in various variables: > > <ItemizedList> > @@ -710,8 +710,8 @@ int dispatch (char *command_line) > <Title>Source files in EXT2ED</Title> > > <Para> > -The project was getting large enough to be splitted into several source > -files. I splitted the source as much as I could into self-contained > +The project was getting large enough to be split into several source > +files. I split the source as much as I could into self-contained > source files. The source files consist of the following blocks: > > <ItemizedList> > @@ -1156,7 +1156,7 @@ according to the source division outlined above, in inode_com.c) will > store the necessary information about the inode in a specific structure > of type struct_file_info which will be available for use by the file_com.c > functions. Only then it will set the type to file. This is also the reason > -that a direct asynchronic set of the object type to a file through a settype > +that a direct asynchronous set of the object type to a file through a settype > command will fail - The above data structure will not be initialized > properly because the user never was at the inode of the file. > > diff --git a/ext2ed/doc/ext2fs-overview.sgml b/ext2ed/doc/ext2fs-overview.sgml > index 900c3930..0d54f07c 100644 > --- a/ext2ed/doc/ext2fs-overview.sgml > +++ b/ext2ed/doc/ext2fs-overview.sgml > @@ -533,7 +533,7 @@ allocated blocks. > </Para> > > <Para> > -It was found experimently that many of the files in the filesystem are > +It was found experimentally that many of the files in the filesystem are > actually quite small. To take advantage of this effect, the kernel provides > storage of up to 12 block numbers in the inode itself. Those blocks are > called <Literal remap="tt">direct blocks</Literal>. The advantage is that once the kernel has the > @@ -692,7 +692,7 @@ options. They determine the type of the "file" to which the inode belongs: > <Title>Time and date</Title> > > <Para> > -Linux records the last time in which various operations occured with the > +Linux records the last time in which various operations occurred with the > file. The time and date are saved in the standard C library format - The > number of seconds which passed since 00:00:00 GMT, January 1, 1970. The > following times are recorded: > @@ -1087,7 +1087,7 @@ the length of the file name. > <Para> > The variable <Literal remap="tt">rec_len</Literal> is provided because the directory entries are > padded with zeroes so that the next entry will be in an offset which is > -a multiplition of 4. The resulting directory entry size is stored in > +a multiplication of 4. The resulting directory entry size is stored in > <Literal remap="tt">rec_len</Literal>. If the directory entry is the last in the block, it is > padded with zeroes till the end of the block, and rec_len is updated > accordingly. > @@ -1402,7 +1402,7 @@ then zero s_mnt_count. <Literal remap="tt">s_max_mnt > E2fsck also records the last time in which the file system was checked in > the <Literal remap="tt">s_lastcheck</Literal> variable. The user tunable parameter > <Literal remap="tt">s_checkinterval</Literal> will contain the number of seconds which are allowed > -to pass since <Literal remap="tt">s_lastcheck</Literal> until a check is reforced. A value of > +to pass since <Literal remap="tt">s_lastcheck</Literal> until a check is forced. A value of > <Literal remap="tt">0</Literal> disables time-based check. > </Para> > > diff --git a/ext2ed/doc/user-guide.sgml b/ext2ed/doc/user-guide.sgml > index 42887eff..1e8f3cdf 100644 > --- a/ext2ed/doc/user-guide.sgml > +++ b/ext2ed/doc/user-guide.sgml > @@ -506,8 +506,8 @@ itself the direct blocks, indirect blocks, ..., while still preserving the > actual view of the exact block usage of the file. > </Screen> > > -The point is that the "tour" of the filesystem will now be synchronic rather > -than asynchronic - Each object has the "links" to pass between connected > +The point is that the "tour" of the filesystem will now be synchronous rather > +than asynchronous - Each object has the "links" to pass between connected > logical structures, and special fine-tuned functions to deal with it. > </Para> > > @@ -855,7 +855,7 @@ The <Command>setdevice</Command> command is described at section <XRef LinkEnd=" > Syntax: setoffset [block || type] [+|-]offset > </Screen> > > -The <Command>setoffset</Command> command is used to move asynchronically inside the file > +The <Command>setoffset</Command> command is used to move asynchronously inside the file > system. It is considered a low level command, and usually should not be used > when editing an ext2 filesystem, simply because movement is better > utilized through the specific ext2 commands. > diff --git a/ext2ed/ext2.descriptors b/ext2ed/ext2.descriptors > index b1ac4c4b..e356f4cd 100644 > --- a/ext2ed/ext2.descriptors > +++ b/ext2ed/ext2.descriptors > @@ -5,7 +5,7 @@ Most of this file is just copied from the ext2 main include file. > My parser is very primitive - It only searches for the struct keywords, > and uses the variables in there. The rest of the file is just ignored. > > -You will find at the end a few additional types which are not aviable in > +You will find at the end a few additional types which are not available in > the original include file, such as the types "file" and "dir". They have > no variables, but are necessary due to the way ext2ed binds C commands > to specific types. > diff --git a/ext2ed/general_com.c b/ext2ed/general_com.c > index c9b2ffc4..aa274e33 100644 > --- a/ext2ed/general_com.c > +++ b/ext2ed/general_com.c > @@ -90,7 +90,7 @@ void help (char *command_line) > wprintw (show_pad,"EXT2ED ver %s (%s)\n",E2FSPROGS_VERSION, E2FSPROGS_DATE); > wprintw (show_pad,"Copyright (C) 1995 Gadi Oxman\n"); > wprintw (show_pad,"Reviewed 2001 Christian Bac\n"); > - wprintw (show_pad,"Modified and enchanced by Theodore Ts'o, 2002\n"); > + wprintw (show_pad,"Modified and enhanced by Theodore Ts'o, 2002\n"); > wprintw (show_pad,"EXT2ED is hereby placed under the terms of the GNU General Public License.\n\n"); > wprintw (show_pad,"EXT2ED was programmed as a student project in the software laboratory\n"); > wprintw (show_pad,"of the faculty of electrical engineering in the\n"); > @@ -140,7 +140,7 @@ void detailed_help (char *text) > refresh_show_pad ();return; > } > > - wprintw (show_pad,"Error - Command %s not aviable now\n",text); > + wprintw (show_pad,"Error - Command %s not available now\n",text); > refresh_show_pad ();return; > } > > diff --git a/ext2ed/init.c b/ext2ed/init.c > index 7d9b526f..718c0d08 100644 > --- a/ext2ed/init.c > +++ b/ext2ed/init.c > @@ -80,8 +80,8 @@ void add_general_commands (void) > add_user_command (&general_commands,"help","EXT2ED help system",help); > add_user_command (&general_commands,"set","Changes a variable in the current object",set); > add_user_command (&general_commands,"setdevice","Selects the filesystem block device (e.g. /dev/hda1)",set_device); > - add_user_command (&general_commands,"setoffset","Moves asynchronicly in the filesystem",set_offset); > - add_user_command (&general_commands,"settype","Tells EXT2ED how to interpert the current object",set_type); > + add_user_command (&general_commands,"setoffset","Moves asynchronously in the filesystem",set_offset); > + add_user_command (&general_commands,"settype","Tells EXT2ED how to interpret the current object",set_type); > add_user_command (&general_commands,"show","Displays the current object",show); > add_user_command (&general_commands,"pgup","Scrolls data one page up",pgup); > add_user_command (&general_commands,"pgdn","Scrolls data one page down",pgdn); > @@ -316,7 +316,7 @@ Set specific type user commands. > } > > if (strcmp ((ptr->name),"ext2_group_desc")==0) { > - add_user_command (&ptr->type_commands,"next","Pass to the next block group decriptor",type_ext2_group_desc___next); > + add_user_command (&ptr->type_commands,"next","Pass to the next block group descriptor",type_ext2_group_desc___next); > add_user_command (&ptr->type_commands,"prev","Pass to the previous group descriptor",type_ext2_group_desc___prev); > add_user_command (&ptr->type_commands,"entry","Pass to a specific group descriptor",type_ext2_group_desc___entry); > add_user_command (&ptr->type_commands,"show","Shows the current group descriptor",type_ext2_group_desc___show); > diff --git a/lib/blkid/libblkid.3.in b/lib/blkid/libblkid.3.in > index bd24cb1a..2fea3a9b 100644 > --- a/lib/blkid/libblkid.3.in > +++ b/lib/blkid/libblkid.3.in > @@ -47,7 +47,7 @@ so the use of the cache file is > in this situation. > .SH AUTHOR > .B libblkid > -was written by Andreas Dilger for the ext2 filesystem utilties, with input > +was written by Andreas Dilger for the ext2 filesystem utilities, with input > from Ted Ts'o. The library was subsequently heavily modified by Ted Ts'o. > .SH FILES > .TP > diff --git a/lib/e2p/e2p.pc.in b/lib/e2p/e2p.pc.in > index c171ae67..150b089a 100644 > --- a/lib/e2p/e2p.pc.in > +++ b/lib/e2p/e2p.pc.in > @@ -4,7 +4,7 @@ libdir=@libdir@ > includedir=@includedir@ > > Name: e2p > -Description: Ext2fs userpace programs utility library > +Description: Ext2fs userspace programs utility library > Version: @E2FSPROGS_VERSION@ > Requires: > Cflags: -I${includedir}/e2p -I${includedir} > diff --git a/lib/et/com_err.texinfo b/lib/et/com_err.texinfo > index c9d3fcaf..3e7ae32c 100644 > --- a/lib/et/com_err.texinfo > +++ b/lib/et/com_err.texinfo > @@ -394,7 +394,7 @@ any event, any invariant which the library assumes must be maintained. > In general, it is not in the domain of non user-interface library > routines to write error messages to the user's terminal, or halt the > process. Such forms of ``error handling'' should be reserved for > -failures of internal invariants and consistancy checks only, as it > +failures of internal invariants and consistency checks only, as it > provides the user of the library no way to clean up for himself in the > event of total failure. > > @@ -441,7 +441,7 @@ available, try again later,'' or it may try a different server. > > Cleanup which is typically necessary may include, but not be limited > to, freeing allocated memory which will not be needed any more, > -unlocking concurrancy locks, dropping reference counts, closing file > +unlocking concurrency locks, dropping reference counts, closing file > descriptors, or otherwise undoing anything which the procedure did up > to this point. When there are a lot of things which can go wrong, it > is generally good to write one block of error-handling code which is > diff --git a/lib/et/test_cases/heimdal2.c b/lib/et/test_cases/heimdal2.c > index a8d4c111..d2ad5726 100644 > --- a/lib/et/test_cases/heimdal2.c > +++ b/lib/et/test_cases/heimdal2.c > @@ -14,7 +14,7 @@ static const char * const text[] = { > N_("Bad key supplied"), > N_("Can't encrypt data"), > N_("Cannot encode/decode authentication info"), > - N_("Principal attemping change is in wrong realm"), > + N_("Principal attempting change is in wrong realm"), > N_("Packet is too large"), > N_("Version number is incorrect"), > N_("Checksum does not match"), > diff --git a/lib/et/test_cases/heimdal2.et b/lib/et/test_cases/heimdal2.et > index 7a247c55..703600c5 100644 > --- a/lib/et/test_cases/heimdal2.et > +++ b/lib/et/test_cases/heimdal2.et > @@ -18,7 +18,7 @@ ec KADM_NO_CRED, "Unable to fetch credentials" > ec KADM_BAD_KEY, "Bad key supplied" > ec KADM_NO_ENCRYPT, "Can't encrypt data" > ec KADM_NO_AUTH, "Cannot encode/decode authentication info" > -ec KADM_WRONG_REALM, "Principal attemping change is in wrong realm" > +ec KADM_WRONG_REALM, "Principal attempting change is in wrong realm" > ec KADM_NO_ROOM, "Packet is too large" > ec KADM_BAD_VER, "Version number is incorrect" > ec KADM_BAD_CHK, "Checksum does not match" > diff --git a/lib/ext2fs/inline_data.c b/lib/ext2fs/inline_data.c > index 0c1eef6c..53016fdb 100644 > --- a/lib/ext2fs/inline_data.c > +++ b/lib/ext2fs/inline_data.c > @@ -603,7 +603,7 @@ static errcode_t file_test(ext2_filsys fs) > /* create a new file */ > retval = ext2fs_new_inode(fs, 2, 010755, 0, &newfile); > if (retval) { > - com_err("file_test", retval, "while allocaing a new inode"); > + com_err("file_test", retval, "while allocating a new inode"); > return 1; > } > > @@ -613,7 +613,7 @@ static errcode_t file_test(ext2_filsys fs) > inode.i_mode = LINUX_S_IFREG; > retval = ext2fs_write_new_inode(fs, newfile, &inode); > if (retval) { > - com_err("file_test", retval, "while writting a new inode"); > + com_err("file_test", retval, "while writing a new inode"); > return 1; > } > > @@ -801,7 +801,7 @@ int main(int argc, char *argv[]) > retval = ext2fs_allocate_tables(fs); > if (retval) { > com_err("setup", retval, > - "while allocating tables for test filesysmte"); > + "while allocating tables for test filesystem"); > exit(1); > } > > diff --git a/lib/uuid/uuid_compare.3.in b/lib/uuid/uuid_compare.3.in > index 4807f3a8..67bc9b9e 100644 > --- a/lib/uuid/uuid_compare.3.in > +++ b/lib/uuid/uuid_compare.3.in > @@ -47,7 +47,7 @@ to each other. > .SH RETURN VALUE > Returns an integer less than, equal to, or greater than zero if > .I uu1 > -is found, respectively, to be lexigraphically less than, equal, or > +is found, respectively, to be lexicographical less than, equal, or > greater than > .IR uu2 . > .SH AUTHOR > diff --git a/lib/uuid/uuid_generate.3.in b/lib/uuid/uuid_generate.3.in > index f44900cd..e6be9685 100644 > --- a/lib/uuid/uuid_generate.3.in > +++ b/lib/uuid/uuid_generate.3.in > @@ -58,7 +58,7 @@ function forces the use of the all-random UUID format, even if > a high-quality random number generator (i.e., > .IR /dev/urandom ) > is not available, in which case a pseudo-random > -generator will be subsituted. Note that the use of a pseudo-random > +generator will be substituted. Note that the use of a pseudo-random > generator may compromise the uniqueness of UUID's > generated in this fashion. > .sp > @@ -75,7 +75,7 @@ function only uses this algorithm if a high-quality source of > randomness is not available. > .sp > The UUID is 16 bytes (128 bits) long, which gives approximately 3.4x10^38 > -unique values (there are approximately 10^80 elemntary particles in > +unique values (there are approximately 10^80 elementary particles in > the universe according to Carl Sagan's > .IR Cosmos ). > The new UUID can reasonably be considered unique among all UUIDs created > diff --git a/misc/chattr.1.in b/misc/chattr.1.in > index 44ee3370..967b8088 100644 > --- a/misc/chattr.1.in > +++ b/misc/chattr.1.in > @@ -156,7 +156,7 @@ although it can be displayed by > .PP > A directory with the 'P' attribute set will enforce a hierarchical > structure for project id's. This means that files and directory created > -in the directory will inhert the project id of the directory, rename > +in the directory will inherit the project id of the directory, rename > operations are constrained so when a file or directory is moved into > another directory, that the project id's much match. In addition, a > hard link to file can only be created when the project id for the file > diff --git a/misc/mke2fs.8.in b/misc/mke2fs.8.in > index dc86e67f..766bf529 100644 > --- a/misc/mke2fs.8.in > +++ b/misc/mke2fs.8.in > @@ -433,7 +433,7 @@ be smaller than the blocksize of the filesystem, since in that case more > inodes would be made than can ever be used. Be warned that it is not > possible to change this ratio on a filesystem after it is created, so be > careful deciding the correct value for this parameter. Note that resizing > -a filesystem changes the numer of inodes to maintain this ratio. > +a filesystem changes the number of inodes to maintain this ratio. > .TP > .BI \-I " inode-size" > Specify the size of each inode in bytes. > diff --git a/misc/mke2fs.c b/misc/mke2fs.c > index d585a9e2..cfb10bc4 100644 > --- a/misc/mke2fs.c > +++ b/misc/mke2fs.c > @@ -2896,7 +2896,7 @@ int main (int argc, char *argv[]) > if (ext2fs_has_feature_csum_seed(fs->super) && > !ext2fs_has_feature_metadata_csum(fs->super)) { > printf("%s", _("The metadata_csum_seed feature " > - "requres the metadata_csum feature.\n")); > + "requires the metadata_csum feature.\n")); > exit(1); > } > > diff --git a/misc/mke2fs.conf.5.in b/misc/mke2fs.conf.5.in > index a8517c39..21a0c882 100644 > --- a/misc/mke2fs.conf.5.in > +++ b/misc/mke2fs.conf.5.in > @@ -384,7 +384,7 @@ This relation indicates whether file systems with the > feature enabled should be created with 0, 1, or 2 backup superblocks. > .TP > .I packed_meta_blocks > -This boolean relation specifes whether the allocation bitmaps, inode > +This boolean relation specifies whether the allocation bitmaps, inode > table, and journal should be located at the beginning of the file system. > .TP > .I inode_ratio > diff --git a/resize/resize2fs.8.in b/resize/resize2fs.8.in > index 76434d74..3f0674ce 100644 > --- a/resize/resize2fs.8.in > +++ b/resize/resize2fs.8.in > @@ -143,7 +143,7 @@ operation during an offline resize, so that the user can keep track > of what the program is doing. > .TP > .B \-P > -Print an extimate of the number of file system blocks in the file system > +Print an estimate of the number of file system blocks in the file system > if it is shrunk using > .BR resize2fs 's > .B \-M > -- > 2.14.2 > Cheers, Andreas [-- Attachment #2: Message signed with OpenPGP --] [-- Type: application/pgp-signature, Size: 195 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/3] Fix typos in code comments and developer docs. 2017-10-14 18:44 [PATCH 0/3] e2fsprogs: Fixes typos in code and docs Sebastian Rasmussen 2017-10-14 18:44 ` [PATCH 1/3] Fix typos in error messages and documentation Sebastian Rasmussen @ 2017-10-14 18:44 ` Sebastian Rasmussen 2017-10-14 22:29 ` Andreas Dilger 2017-10-16 3:23 ` [PATCH 0/3] e2fsprogs: Fixes typos in code and docs Theodore Ts'o 2 siblings, 1 reply; 7+ messages in thread From: Sebastian Rasmussen @ 2017-10-14 18:44 UTC (permalink / raw) To: tytso; +Cc: linux-ext4, Sebastian Rasmussen Signed-off-by: Sebastian Rasmussen <sebras@gmail.com> --- INSTALL | 2 +- INSTALL.elfbin | 2 +- TODO | 4 ++-- aclocal.m4 | 4 ++-- configure.ac | 6 +++--- contrib/add_ext4_encrypt.c | 2 +- contrib/android/basefs_allocator.c | 2 +- debian/rules | 2 +- debian/uuid-dev.README.Debian | 4 ++-- debugfs/Makefile.in | 2 +- debugfs/logdump.c | 2 +- debugfs/set_fields.c | 2 +- debugfs/util.c | 2 +- e2fsck/message.c | 2 +- e2fsck/pass1.c | 6 +++--- e2fsck/pass1b.c | 2 +- e2fsck/pass2.c | 4 ++-- e2fsck/pass3.c | 2 +- e2fsck/pass5.c | 2 +- e2fsck/problem.c | 6 +++--- e2fsck/problem.h | 10 +++++----- e2fsck/recovery.c | 4 ++-- e2fsck/region.c | 2 +- e2fsck/unix.c | 2 +- e2fsck/util.c | 2 +- ext2ed/README | 6 +++--- ext2ed/dir_com.c | 2 +- ext2ed/disk.c | 2 +- ext2ed/ext2ed.conf.in | 4 ++-- ext2ed/ext2ed.h | 4 ++-- ext2ed/init.c | 2 +- ext2ed/main.c | 10 +++++----- intl/dcigettext.c | 2 +- intl/l10nflist.c | 2 +- intl/libgettext.h | 2 +- intl/xsize.h | 2 +- lib/blkid/dev.c | 2 +- lib/blkid/probe.h | 2 +- lib/blkid/tag.c | 2 +- lib/et/com_right.c | 2 +- lib/ext2fs/Makefile.in | 2 +- lib/ext2fs/alloc_tables.c | 2 +- lib/ext2fs/bb_inode.c | 2 +- lib/ext2fs/bitops.c | 2 +- lib/ext2fs/blkmap64_rb.c | 2 +- lib/ext2fs/ext2_fs.h | 4 ++-- lib/ext2fs/ext2fs.h | 4 ++-- lib/ext2fs/ext3_extents.h | 2 +- lib/ext2fs/get_pathname.c | 2 +- lib/ext2fs/inline_data.c | 2 +- lib/ext2fs/inode.c | 2 +- lib/ext2fs/nt_io.c | 8 ++++---- lib/ext2fs/rbtree.h | 2 +- lib/ext2fs/res_gdt.c | 2 +- lib/ext2fs/tdb.c | 14 +++++++------- lib/ext2fs/undo_io.c | 2 +- lib/ss/ct_c.sed | 4 ++-- lib/support/profile.c | 2 +- lib/support/profile_helpers.c | 2 +- lib/support/quotaio.h | 2 +- lib/support/quotaio_tree.h | 2 +- lib/uuid/gen_uuid_nt.c | 2 +- misc/Makefile.in | 2 +- misc/create_inode.c | 2 +- misc/e2image.c | 2 +- misc/e4crypt.c | 2 +- misc/e4defrag.c | 4 ++-- misc/findsuper.c | 4 ++-- misc/fsck.c | 2 +- misc/fsck.h | 2 +- misc/logsave.c | 2 +- misc/tune2fs.h | 4 ++-- resize/extent.c | 2 +- resize/main.c | 2 +- resize/online.c | 2 +- resize/resize2fs.c | 14 +++++++------- resize/resize2fs.h | 2 +- resize/sim_progress.c | 2 +- resize/test_extent.c | 2 +- util/gen-tarball.in | 2 +- util/subst.c | 2 +- util/symlinks.c | 2 +- 82 files changed, 126 insertions(+), 126 deletions(-) diff --git a/INSTALL b/INSTALL index b5afd2f5..2dd08f53 100644 --- a/INSTALL +++ b/INSTALL @@ -56,7 +56,7 @@ frequency, and the fsck pass number, respectively. The problem with this is that the getmntent() library routine interprets those missing fields as "0", and a pass number of 0 is documented as meaning that fsck should not check that particular filesystem. If your entries in -your /etc/fstab file look liks this: +your /etc/fstab file look like this: /dev/hda4 / ext2 defaults diff --git a/INSTALL.elfbin b/INSTALL.elfbin index 3f54aa10..9c2c6006 100644 --- a/INSTALL.elfbin +++ b/INSTALL.elfbin @@ -35,7 +35,7 @@ frequency, and the fsck pass number, respectively. The problem with this is that the getmntent() library routine interprets those missing fields as "0", and a pass number of 0 is documented as meaning that fsck should not check that particular filesystem. If your entries in -your /etc/fstab file look liks this: +your /etc/fstab file look like this: /dev/hda4 / ext2 defaults diff --git a/TODO b/TODO index d531d175..a622bec1 100644 --- a/TODO +++ b/TODO @@ -29,7 +29,7 @@ Date: Mon, 08 Mar 1999 21:46:14 +0100 From: Sergio Polini <s.polini@mclink.it> -I'm reading the sorce code of e2fsck 1.14. +I'm reading the source code of e2fsck 1.14. In pass2.c, lines 352-357, I read: if ((dirent->name_len & 0xFF) > EXT2_NAME_LEN) { @@ -72,7 +72,7 @@ directories by using debugfs to get the relevant block numbers, then using dd to get the actual data. If debugfs had a feature where it ignored the size of a directory reported by -the inode and instead just dumped all the blocks, it would have facilited +the inode and instead just dumped all the blocks, it would have facilitated things a bit. This seems like a very easy feature to add. Again, thanks for writing debugfs (and all the other Linux stuff you've written!). diff --git a/aclocal.m4 b/aclocal.m4 index 4cf123a1..cfb42cd1 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1884,7 +1884,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], fi ]) dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. + dnl $LDFLAGS. Using breadth-first-search. LIB[]NAME= LTLIB[]NAME= INC[]NAME= @@ -2912,7 +2912,7 @@ fi[]dnl # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -# only at the first occurence in configure.ac, so if the first place +# only at the first occurrence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- diff --git a/configure.ac b/configure.ac index 1314c385..4ec46170 100644 --- a/configure.ac +++ b/configure.ac @@ -124,8 +124,8 @@ else fi AC_USE_SYSTEM_EXTENSIONS dnl -dnl Set default values for library extentions. Will be dealt with after -dnl parsing configuration opions, which may modify these +dnl Set default values for library extensions. Will be dealt with after +dnl parsing configuration options, which may modify these dnl LIB_EXT=.a STATIC_LIB_EXT=.a @@ -977,7 +977,7 @@ AC_CHECK_HEADERS(net/if.h,,, ]]) AC_FUNC_VPRINTF dnl Check to see if dirent has member d_reclen. On cygwin those d_reclen -dnl is not decleared. +dnl is not declared. AC_CHECK_MEMBER(struct dirent.d_reclen,[AC_DEFINE(HAVE_RECLEN_DIRENT, 1, [Define to 1 if dirent has d_reclen])],, [#include <dirent.h>]) diff --git a/contrib/add_ext4_encrypt.c b/contrib/add_ext4_encrypt.c index d4e7c8c5..133fe253 100644 --- a/contrib/add_ext4_encrypt.c +++ b/contrib/add_ext4_encrypt.c @@ -1,5 +1,5 @@ /* - * Basic progam to add ext4 encryption to a file system + * Basic program to add ext4 encryption to a file system * * Copyright 2015, Google, Inc. * diff --git a/contrib/android/basefs_allocator.c b/contrib/android/basefs_allocator.c index 3d014a22..76d183c9 100644 --- a/contrib/android/basefs_allocator.c +++ b/contrib/android/basefs_allocator.c @@ -55,7 +55,7 @@ errcode_t base_fs_alloc_load(ext2_filsys fs, const char *file, allocator->cur_entry = NULL; allocator->entries = entries; - /* Overhide the default allocator */ + /* Override the default allocator */ fs->get_alloc_block2 = basefs_block_allocator; fs->priv_data = allocator; diff --git a/debian/rules b/debian/rules index 81eafc31..94fe7069 100755 --- a/debian/rules +++ b/debian/rules @@ -304,7 +304,7 @@ install: cleanup install-std # This rule allows to factorize the dh_clean between the 2 install rules # This must be launched before install-* (if launching them by hand, for -# exemple) or results are unpredictable +# example) or results are unpredictable cleanup: dh_testdir dh_testroot diff --git a/debian/uuid-dev.README.Debian b/debian/uuid-dev.README.Debian index 3d8cc89c..a4f047e3 100644 --- a/debian/uuid-dev.README.Debian +++ b/debian/uuid-dev.README.Debian @@ -1,5 +1,5 @@ -In order to santize e2fsprogs to be DFSG free, the file +In order to sanitize e2fsprogs to be DFSG free, the file draft-leach-uuids-guids-01.txt has been removed. It can be obtained by downloading e2fsprogs from the upstream sources. It may also be available from other sites on the network, if you do a quick web @@ -16,7 +16,7 @@ the documentation which has been removed for Debian's DFSG license purity shouldn't be denied to Ubuntu users. Theodore Ts'o - Ocotober 3, 2006 + October 3, 2006 diff --git a/debugfs/Makefile.in b/debugfs/Makefile.in index 408a3236..57940cde 100644 --- a/debugfs/Makefile.in +++ b/debugfs/Makefile.in @@ -46,7 +46,7 @@ STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBSS) \ $(DEPSTATIC_LIBCOM_ERR) $(DEPSTATIC_LIBUUID) \ $(DEPSTATIC_LIBE2P) -# This nastyness is needed because of jfs_user.h hackery; when we finally +# This nastiness is needed because of jfs_user.h hackery; when we finally # clean up this mess, we should be able to drop it LOCAL_CFLAGS = -I$(srcdir)/../e2fsck -DDEBUGFS DEPEND_CFLAGS = -I$(srcdir) diff --git a/debugfs/logdump.c b/debugfs/logdump.c index 6ff5ad1f..864f234c 100644 --- a/debugfs/logdump.c +++ b/debugfs/logdump.c @@ -1,7 +1,7 @@ /* * logdump.c --- dump the contents of the journal out to a file * - * Authro: Stephen C. Tweedie, 2001 <sct@redhat.com> + * Author: Stephen C. Tweedie, 2001 <sct@redhat.com> * Copyright (C) 2001 Red Hat, Inc. * Based on portions Copyright (C) 1994 Theodore Ts'o. * diff --git a/debugfs/set_fields.c b/debugfs/set_fields.c index ca688622..8dfbba9c 100644 --- a/debugfs/set_fields.c +++ b/debugfs/set_fields.c @@ -429,7 +429,7 @@ static struct field_set_info *find_field(struct field_set_info *fields, /* * Note: info->size == 6 is special; this means a base size 4 bytes, - * and secondiory (high) size of 2 bytes. This is needed for the + * and secondary (high) size of 2 bytes. This is needed for the * special case of i_blocks_high and i_file_acl_high. */ static errcode_t parse_uint(struct field_set_info *info, char *field, diff --git a/debugfs/util.c b/debugfs/util.c index 5f101f48..452de749 100644 --- a/debugfs/util.c +++ b/debugfs/util.c @@ -210,7 +210,7 @@ char *time_to_string(__s64 cl) const char *tz; if (do_gmt == -1) { - /* The diet libc doesn't respect the TZ environemnt variable */ + /* The diet libc doesn't respect the TZ environment variable */ tz = ss_safe_getenv("TZ"); if (!tz) tz = ""; diff --git a/e2fsck/message.c b/e2fsck/message.c index 0d47a3a4..727f71d5 100644 --- a/e2fsck/message.c +++ b/e2fsck/message.c @@ -224,7 +224,7 @@ static void print_time(FILE *f, time_t t) static int do_gmt = -1; #ifdef __dietlibc__ - /* The diet libc doesn't respect the TZ environemnt variable */ + /* The diet libc doesn't respect the TZ environment variable */ if (do_gmt == -1) { time_str = getenv("TZ"); if (!time_str) diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c index f7593ff0..5015d938 100644 --- a/e2fsck/pass1.c +++ b/e2fsck/pass1.c @@ -30,7 +30,7 @@ * * Pass 1 is designed to stash away enough information so that the * other passes should not need to read in the inode information - * during the normal course of a filesystem check. (Althogh if an + * during the normal course of a filesystem check. (Although if an * inconsistency is detected, other passes may need to read in an * inode to fix it.) * @@ -1688,7 +1688,7 @@ void e2fsck_pass1(e2fsck_t ctx) /* * Make sure the root inode is a directory; if * not, offer to clear it. It will be - * regnerated in pass #3. + * regenerated in pass #3. */ if (!LINUX_S_ISDIR(inode->i_mode)) { if (fix_problem(ctx, PR_1_ROOT_NO_DIR, &pctx)) @@ -4156,7 +4156,7 @@ static void mark_table_blocks(e2fsck_t ctx) } /* - * Thes subroutines short circuits ext2fs_get_blocks and + * These subroutines short circuits ext2fs_get_blocks and * ext2fs_check_directory; we use them since we already have the inode * structure, so there's no point in letting the ext2fs library read * the inode again. diff --git a/e2fsck/pass1b.c b/e2fsck/pass1b.c index d22cffd3..392ff2c6 100644 --- a/e2fsck/pass1b.c +++ b/e2fsck/pass1b.c @@ -919,7 +919,7 @@ static errcode_t clone_file(e2fsck_t ctx, ext2_ino_t ino, sizeof(dp->inode), "clone file EA"); /* * If we cloned the EA block, find all other inodes - * which refered to that EA block, and modify + * which referred to that EA block, and modify * them to point to the new EA block. */ n = dict_lookup(&clstr_dict, diff --git a/e2fsck/pass2.c b/e2fsck/pass2.c index 09b79c3b..09c16179 100644 --- a/e2fsck/pass2.c +++ b/e2fsck/pass2.c @@ -1635,7 +1635,7 @@ static int deallocate_inode_block(ext2_filsys fs, } /* - * This fuction deallocates an inode + * This function deallocates an inode */ static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf) { @@ -1705,7 +1705,7 @@ clear_inode: } /* - * This fuction clears the htree flag on an inode + * This function clears the htree flag on an inode */ static void clear_htree(e2fsck_t ctx, ext2_ino_t ino) { diff --git a/e2fsck/pass3.c b/e2fsck/pass3.c index 4d9430bb..6a975b36 100644 --- a/e2fsck/pass3.c +++ b/e2fsck/pass3.c @@ -15,7 +15,7 @@ * not, e2fsck will offer to create a new one. It is then marked as * "done". * - * Then, pass3 interates over all directory inodes; for each directory + * Then, pass3 iterates over all directory inodes; for each directory * it attempts to trace up the filesystem tree, using dirinfo.parent * until it reaches a directory which has been marked "done". If it * can not do so, then the directory must be disconnected, and e2fsck diff --git a/e2fsck/pass5.c b/e2fsck/pass5.c index ab736496..7803e8b8 100644 --- a/e2fsck/pass5.c +++ b/e2fsck/pass5.c @@ -300,7 +300,7 @@ static void print_bitmap_problem(e2fsck_t ctx, problem_t problem, pctx->ino = pctx->ino2 = 0; } -/* Just to be more succint */ +/* Just to be more succinct */ #define B2C(x) EXT2FS_B2C(fs, (x)) #define EQ_CLSTR(x, y) (B2C(x) == B2C(y)) #define LE_CLSTR(x, y) (B2C(x) <= B2C(y)) diff --git a/e2fsck/problem.c b/e2fsck/problem.c index 2bb8d4e2..edc9d51f 100644 --- a/e2fsck/problem.c +++ b/e2fsck/problem.c @@ -174,7 +174,7 @@ static struct e2fsck_problem problem_table[] = { N_("Corruption found in @S. (%s = %N).\n"), PROMPT_NONE, PR_AFTER_CODE, PR_0_SB_CORRUPT }, - /* Error determing physical device size of filesystem */ + /* Error determining physical device size of filesystem */ { PR_0_GETSIZE_ERROR, N_("Error determining size of the physical @v: %m\n"), PROMPT_NONE, PR_FATAL }, @@ -1328,7 +1328,7 @@ static struct e2fsck_problem problem_table[] = { N_("@E has @D/unused @i %Di. "), PROMPT_CLEAR, PR_PREEN_OK }, - /* Directry entry is link to '.' */ + /* Directory entry is link to '.' */ { PR_2_LINK_DOT, N_("@E @L to '.' "), PROMPT_CLEAR, 0 }, @@ -1343,7 +1343,7 @@ static struct e2fsck_problem problem_table[] = { N_("@E @L to @d %P (%Di).\n"), PROMPT_CLEAR, 0 }, - /* Directory entry contains a link to the root directry */ + /* Directory entry contains a link to the root directory */ { PR_2_LINK_ROOT, N_("@E @L to the @r.\n"), PROMPT_CLEAR, 0 }, diff --git a/e2fsck/problem.h b/e2fsck/problem.h index 49a8c3ad..482d111a 100644 --- a/e2fsck/problem.h +++ b/e2fsck/problem.h @@ -91,7 +91,7 @@ struct problem_context { /* Miscellaneous superblock corruption */ #define PR_0_MISC_CORRUPT_SUPER 0x00000B -/* Error determing physical device size of filesystem */ +/* Error determining physical device size of filesystem */ #define PR_0_GETSIZE_ERROR 0x00000C /* Inode count in the superblock incorrect */ @@ -794,7 +794,7 @@ struct problem_context { /* Directory entry has deleted or unused inode */ #define PR_2_UNUSED_INODE 0x020003 -/* Directry entry is link to '.' */ +/* Directory entry is link to '.' */ #define PR_2_LINK_DOT 0x020004 /* Directory entry points to inode now located in a bad block */ @@ -803,7 +803,7 @@ struct problem_context { /* Directory entry contains a link to a directory */ #define PR_2_LINK_DIR 0x020006 -/* Directory entry contains a link to the root directry */ +/* Directory entry contains a link to the root directory */ #define PR_2_LINK_ROOT 0x020007 /* Directory entry has illegal characters in its name */ @@ -1093,7 +1093,7 @@ struct problem_context { #define PR_3_LPF_ENCRYPTED 0x03001B /* - * Pass 3a --- rehashing diretories + * Pass 3a --- rehashing directories */ /* Pass 3a: Reindexing directories */ #define PR_3A_PASS_HEADER 0x031000 @@ -1210,7 +1210,7 @@ struct problem_context { /* Inode range not used, but marked in bitmap */ #define PR_5_INODE_RANGE_UNUSED 0x050016 -/* Inode rangeused, but not marked used in bitmap */ +/* Inode range used, but not marked used in bitmap */ #define PR_5_INODE_RANGE_USED 0x050017 /* Block in use but group is marked BLOCK_UNINIT */ diff --git a/e2fsck/recovery.c b/e2fsck/recovery.c index 4c457b39..81110e4d 100644 --- a/e2fsck/recovery.c +++ b/e2fsck/recovery.c @@ -325,7 +325,7 @@ int journal_recover(journal_t *journal) * Locate any valid recovery information from the journal and set up the * journal structures in memory to ignore it (presumably because the * caller has evidence that it is out of date). - * This function does'nt appear to be exorted.. + * This function doesn't appear to be exported.. * * We perform one pass over the journal to allow us to tell the user how * much recovery information is being erased, and to let us initialise @@ -689,7 +689,7 @@ static int do_one_pass(journal_t *journal, * | GO TO NEXT "Journal Corruption" * | TRANSACTION * | - * {(n+1)th transanction} + * {(n+1)th transaction} * | * _______|______________ * | | diff --git a/e2fsck/region.c b/e2fsck/region.c index 95d23be4..d5b37df8 100644 --- a/e2fsck/region.c +++ b/e2fsck/region.c @@ -84,7 +84,7 @@ int region_allocate(region_t region, region_addr_t start, int n) /* * Search through the linked list. If we find that it - * conflicts witih something that's already allocated, return + * conflicts with something that's already allocated, return * 1; if we can find an existing region which we can grow, do * so. Otherwise, stop when we find the appropriate place * insert a new region element into the linked list. diff --git a/e2fsck/unix.c b/e2fsck/unix.c index 939862f1..b46dcb2d 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -1214,7 +1214,7 @@ static errcode_t e2fsck_check_mmp(ext2_filsys fs, e2fsck_t ctx) if (retval) goto check_error; - /* Print warning if e2fck will wait for more than 20 secs. */ + /* Print warning if e2fsck will wait for more than 20 secs. */ if (verbose || wait_time > EXT4_MMP_MIN_CHECK_INTERVAL * 4) { log_out(ctx, _("MMP interval is %u seconds and total wait " "time is %u seconds. Please wait...\n"), diff --git a/e2fsck/util.c b/e2fsck/util.c index a297e58f..ed947025 100644 --- a/e2fsck/util.c +++ b/e2fsck/util.c @@ -735,7 +735,7 @@ int check_for_modules(const char *fs_name) /* * Helper function that does the right thing if write returns a - * partial write, or an EGAIN/EINTR error. + * partial write, or an EAGAIN/EINTR error. */ int write_all(int fd, char *buf, size_t count) { diff --git a/ext2ed/README b/ext2ed/README index fda4b87c..1f473cf4 100644 --- a/ext2ed/README +++ b/ext2ed/README @@ -48,10 +48,10 @@ This is version 0.2 of ext2ed - The extended-2 filesystem editor. Modifications on Apr 5 2001 This is minor bug fixes to ext2ed, as of April 2001. It supports modern ext2 version that has file type in directory structure -and fixes the missunderstanding between ncurses and +and fixes the misunderstanding between ncurses and readline. -I first applied patches from Redhat except the one for readline that +I first applied patches from Red Hat except the one for readline that rewrote a readline behavior. Globals diffs between version 0.1 and 0.2 is stored in file : @@ -114,7 +114,7 @@ that ncurses will be properly installed on your system: set your TERM environment variable to 'linux' or link l/linux to c/console in the terminfo database. -4. The percompiled binary was linked with ncurses 1.9.4 and will search +4. The precompiled binary was linked with ncurses 1.9.4 and will search for the terminfo database on /usr/local/lib/terminfo. If you are using it, and your 1.9.4 compatible terminfo database is not on the directory above, use the TERMINFO environment variable to specify diff --git a/ext2ed/dir_com.c b/ext2ed/dir_com.c index ba852676..67bb4b57 100644 --- a/ext2ed/dir_com.c +++ b/ext2ed/dir_com.c @@ -539,7 +539,7 @@ void type_dir___remember (char *command_line) /* -This is overrided here because we don't remember a directory - It is too complicated. Instead, we remember the +This is overridden here because we don't remember a directory - It is too complicated. Instead, we remember the inode of the current directory. */ diff --git a/ext2ed/disk.c b/ext2ed/disk.c index 70ece943..4612d00d 100644 --- a/ext2ed/disk.c +++ b/ext2ed/disk.c @@ -14,7 +14,7 @@ double check the various permissions and possible errors here. The major update which needs to be done here is switching to the use of the llseek system call, so that we will be able to support ext2 filesystems up to 4 TB. Currently, due to the standard fseek usage, we can't handle filesystems bigger than 4 GB. The limit is actually 2 GB because I used long rather than unsigned long long at too -many places in the program. To conclude - This upgrade needs to be done carefuly; There are many places to change. +many places in the program. To conclude - This upgrade needs to be done carefully; There are many places to change. First written on: April 9 1995 diff --git a/ext2ed/ext2ed.conf.in b/ext2ed/ext2ed.conf.in index 7e2a9255..c0796234 100644 --- a/ext2ed/ext2ed.conf.in +++ b/ext2ed/ext2ed.conf.in @@ -52,8 +52,8 @@ AllowMountedRead on # When ForceExt2 is set to on, the filesystem is assumed to be ext2 # filesystem, despite the possibly corrupt superblock magic number reading. -# All the ext2 specific commands will be aviable despite the possible -# autodetection failture. +# All the ext2 specific commands will be available despite the possible +# autodetection failure. ForceExt2 off diff --git a/ext2ed/ext2ed.h b/ext2ed/ext2ed.h index b9b43b47..0ac77b7a 100644 --- a/ext2ed/ext2ed.h +++ b/ext2ed/ext2ed.h @@ -249,7 +249,7 @@ void signal_SIGSEGV_handler (int sig_num); /* general_com.c */ -/* General commands which are aviable always */ +/* General commands which are available always */ extern void help (char *command_line); extern void set (char *command_line); @@ -275,7 +275,7 @@ void detailed_help (char *text); /* ext2_com.c */ -/* Extended2 filesystem genereal commands - Aviable only when editing an +/* Extended2 filesystem general commands - Available only when editing an ext2 filesystem */ extern void type_ext2___super (char *command_line); diff --git a/ext2ed/init.c b/ext2ed/init.c index 718c0d08..4e584317 100644 --- a/ext2ed/init.c +++ b/ext2ed/init.c @@ -57,7 +57,7 @@ int init (void) general_commands.last_command=-1; /* No commands whatsoever meanwhile */ ext2_commands.last_command=-1; - add_general_commands (); /* Add the general commands, aviable always */ + add_general_commands (); /* Add the general commands, available always */ device_handle=NULL; /* Notice that our device is still not set up */ device_offset=-1; current_type=NULL; /* No filesystem specific types yet */ diff --git a/ext2ed/main.c b/ext2ed/main.c index 4a29979b..f7e7d7df 100644 --- a/ext2ed/main.c +++ b/ext2ed/main.c @@ -14,7 +14,7 @@ This file mostly contains: 2. The parser, which asks the command line from the user. 3. The dispatcher, which analyzes the command line and calls the appropriate handler function. 4. A command pattern matcher which is used along with the readline completion feature. -5. A function which tells the user that an internal error has occured. +5. A function which tells the user that an internal error has occurred. First written on: March 30 1995 @@ -57,7 +57,7 @@ They are initialized below to some logical defaults. char Ext2Descriptors [200]="ext2.descriptors"; /* The location of the ext2 filesystem object definition */ char AlternateDescriptors [200]=""; /* We allow the user to define additional structures */ char LogFile [200]="ext2ed.log"; /* The location of the log file - Each write will be logged there */ -int LogChanges=1; /* 1 enables logging, 0 diables logging */ +int LogChanges=1; /* 1 enables logging, 0 disables logging */ int AllowChanges=0; /* When set, the enablewrite command will fail */ int AllowMountedRead=0; /* Behavior when trying to open a mounted filesystem read-only */ int ForceExt2=0; /* When set, ext2 autodetection is overridden */ @@ -334,7 +334,7 @@ void parser (void) /* - * This is a very important function. Its task is to recieve a command + * This is a very important function. Its task is to receive a command * name and link it to a C function. There are three types of commands: * * 1. General commands - Always available and accessed through @@ -354,7 +354,7 @@ void parser (void) * * When an handling function is found, it is called along with the * command line that was passed to us. The handling function is then - * free to interpert the arguments in its own style. + * free to interpret the arguments in its own style. */ int dispatch (char *command_line) { @@ -480,7 +480,7 @@ char *complete_command (char *text,int state) } } - /* No, pehaps ext2 specific command then ? */ + /* No, perhaps ext2 specific command then ? */ for (i=0;i<=ext2_commands.last_command;i++) { if (strncmp (ext2_commands.names [i],text,len)==0) { diff --git a/intl/dcigettext.c b/intl/dcigettext.c index 79678cf8..f5a99b50 100644 --- a/intl/dcigettext.c +++ b/intl/dcigettext.c @@ -602,7 +602,7 @@ DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, /* When this is a SUID binary we must not allow accessing files outside the dedicated directories. */ if (ENABLE_SECURE && IS_PATH_WITH_DIR (single_locale)) - /* Ingore this entry. */ + /* Ignore this entry. */ continue; } diff --git a/intl/l10nflist.c b/intl/l10nflist.c index 3393ecb5..c13d36da 100644 --- a/intl/l10nflist.c +++ b/intl/l10nflist.c @@ -242,7 +242,7 @@ _nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list, } if ((mask & (XPG_MODIFIER | CEN_AUDIENCE)) != 0) { - /* This component can be part of both syntaces but has different + /* This component can be part of both syntaxes but has different leading characters. For CEN we use `+', else `@'. */ *cp++ = (mask & CEN_AUDIENCE) != 0 ? '+' : '@'; cp = stpcpy (cp, modifier); diff --git a/intl/libgettext.h b/intl/libgettext.h index 3a92960a..c069fbd5 100644 --- a/intl/libgettext.h +++ b/intl/libgettext.h @@ -84,7 +84,7 @@ extern int _msg_tbl_length; #endif -/* For automatical extraction of messages sometimes no real +/* For automatic extraction of messages sometimes no real translation is needed. Instead the string itself is the result. */ #define gettext_noop(Str) (Str) diff --git a/intl/xsize.h b/intl/xsize.h index 362e24b7..e3707fa1 100644 --- a/intl/xsize.h +++ b/intl/xsize.h @@ -95,7 +95,7 @@ xmax (size_t size1, size_t size2) /* Multiplication of a count with an element size, with overflow check. The count must be >= 0 and the element size must be > 0. This is a macro, not an inline function, so that it works correctly even - when N is of a wider tupe and N > SIZE_MAX. */ + when N is of a wider type and N > SIZE_MAX. */ #define xtimes(N, ELSIZE) \ ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX) diff --git a/lib/blkid/dev.c b/lib/blkid/dev.c index 6d8eaeac..d35513e4 100644 --- a/lib/blkid/dev.c +++ b/lib/blkid/dev.c @@ -91,7 +91,7 @@ void blkid_debug_dump_dev(blkid_dev dev) * * These routines do not expose the list.h implementation, which are a * contamination of the namespace, and which force us to reveal far, far - * too much of our internal implemenation. I'm not convinced I want + * too much of our internal implementation. I'm not convinced I want * to keep list.h in the long term, anyway. It's fine for kernel * programming, but performance is not the #1 priority for this * library, and I really don't like the tradeoff of type-safety for diff --git a/lib/blkid/probe.h b/lib/blkid/probe.h index c46a3325..dea4081d 100644 --- a/lib/blkid/probe.h +++ b/lib/blkid/probe.h @@ -663,7 +663,7 @@ struct btrfs_dev_item { /* * starting byte of this partition on the device, - * to allowr for stripe alignment in the future + * to allow for stripe alignment in the future */ __u64 start_offset; diff --git a/lib/blkid/tag.c b/lib/blkid/tag.c index 1eae7df7..e88ebc46 100644 --- a/lib/blkid/tag.c +++ b/lib/blkid/tag.c @@ -261,7 +261,7 @@ errout: * * These routines do not expose the list.h implementation, which are a * contamination of the namespace, and which force us to reveal far, far - * too much of our internal implemenation. I'm not convinced I want + * too much of our internal implementation. I'm not convinced I want * to keep list.h in the long term, anyway. It's fine for kernel * programming, but performance is not the #1 priority for this * library, and I really don't like the tradeoff of type-safety for diff --git a/lib/et/com_right.c b/lib/et/com_right.c index 2cceb54c..a4ed5354 100644 --- a/lib/et/com_right.c +++ b/lib/et/com_right.c @@ -1,6 +1,6 @@ /* * com_right.c -- provide Heimdall / Kerberos4kth com_err interfaces - * for backwards compatbility + * for backwards compatibility * * Copyright (c) 2003 by Theodore Ts'o * diff --git a/lib/ext2fs/Makefile.in b/lib/ext2fs/Makefile.in index b729f619..946cae16 100644 --- a/lib/ext2fs/Makefile.in +++ b/lib/ext2fs/Makefile.in @@ -5,7 +5,7 @@ top_builddir = ../.. my_dir = lib/ext2fs INSTALL = @INSTALL@ DEPEND_CFLAGS = -I$(top_srcdir)/debugfs -I$(srcdir)/../../e2fsck -DDEBUGFS -# This nastyness is needed because of jfs_user.h hackery; when we finally +# This nastiness is needed because of jfs_user.h hackery; when we finally # clean up this mess, we should be able to drop it DEBUGFS_CFLAGS = -I$(srcdir)/../../e2fsck $(ALL_CFLAGS) -DDEBUGFS diff --git a/lib/ext2fs/alloc_tables.c b/lib/ext2fs/alloc_tables.c index da0b15bf..6261c42a 100644 --- a/lib/ext2fs/alloc_tables.c +++ b/lib/ext2fs/alloc_tables.c @@ -33,7 +33,7 @@ * This routine searches for free blocks that can allocate a full * group of bitmaps or inode tables for a flexbg group. Returns the * block number with a correct offset were the bitmaps and inode - * tables can be allocated continously and in order. + * tables can be allocated continuously and in order. */ static blk64_t flexbg_offset(ext2_filsys fs, dgrp_t group, blk64_t start_blk, ext2fs_block_bitmap bmap, int rem_grp, diff --git a/lib/ext2fs/bb_inode.c b/lib/ext2fs/bb_inode.c index b0e114bb..11f10ebc 100644 --- a/lib/ext2fs/bb_inode.c +++ b/lib/ext2fs/bb_inode.c @@ -96,7 +96,7 @@ errcode_t ext2fs_update_bb_inode(ext2_filsys fs, ext2_badblocks_list bb_list) * Now set the bad blocks! * * First, mark the bad blocks as used. This prevents a bad - * block from being used as an indirecto block for the bad + * block from being used as an indirect block for the bad * block inode (!). */ if (bb_list) { diff --git a/lib/ext2fs/bitops.c b/lib/ext2fs/bitops.c index 833d1e97..c4a1d4e0 100644 --- a/lib/ext2fs/bitops.c +++ b/lib/ext2fs/bitops.c @@ -24,7 +24,7 @@ /* * For the benefit of those who are trying to port Linux to another * architecture, here are some C-language equivalents. You should - * recode these in the native assmebly language, if at all possible. + * recode these in the native assembly language, if at all possible. * * C language equivalents written by Theodore Ts'o, 9/26/92. * Modified by Pete A. Zaitcev 7/14/95 to be portable to big endian diff --git a/lib/ext2fs/blkmap64_rb.c b/lib/ext2fs/blkmap64_rb.c index 8d5ddd3f..55704774 100644 --- a/lib/ext2fs/blkmap64_rb.c +++ b/lib/ext2fs/blkmap64_rb.c @@ -555,7 +555,7 @@ static int rb_remove_extent(__u64 start, __u64 count, retval = 1; continue; } else { - /* modify the last extent in reigon to be removed */ + /* modify the last extent in region to be removed */ ext->count -= ((start + count) - ext->start); ext->start = start + count; retval = 1; diff --git a/lib/ext2fs/ext2_fs.h b/lib/ext2fs/ext2_fs.h index 3b55000e..2496d16d 100644 --- a/lib/ext2fs/ext2_fs.h +++ b/lib/ext2fs/ext2_fs.h @@ -970,7 +970,7 @@ struct ext2_dir_entry { * bigger than 255 chars, it's safe to reclaim the extra byte for the * file_type field. * - * This structure is deprecated due to endianity issues. Please use struct + * This structure is deprecated due to endian issues. Please use struct * ext2_dir_entry and accessor functions * ext2fs_dirent_name_len * ext2fs_dirent_set_name_len @@ -1048,7 +1048,7 @@ struct ext2_dir_entry_tail { * regardless of how old the timestamp is. * * The timestamp in the MMP structure will be updated by e2fsck at some - * arbitary intervals (start of passes, after every few groups of inodes + * arbitrary intervals (start of passes, after every few groups of inodes * in pass1 and pass1b). There is no guarantee that e2fsck is updating * the MMP block in a timely manner, and the updates it does are purely * for the convenience of the sysadmin and not for automatic validation. diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h index a4feaccc..6774e32c 100644 --- a/lib/ext2fs/ext2fs.h +++ b/lib/ext2fs/ext2fs.h @@ -329,7 +329,7 @@ struct struct_ext2_filsys { * * BLOCK_FLAG_DEPTH_TRAVERSE indicates that the iterator function for * the indirect, doubly indirect, etc. blocks should be called after - * all of the blocks containined in the indirect blocks are processed. + * all of the blocks contained in the indirect blocks are processed. * This is useful if you are going to be deallocating blocks from an * inode. * @@ -423,7 +423,7 @@ typedef struct ext2_extent_path *ext2_extent_path_t; /* * Flags used by ext2fs_extent_delete() */ -#define EXT2_EXTENT_DELETE_KEEP_EMPTY 0x001 /* keep node if last extnt gone */ +#define EXT2_EXTENT_DELETE_KEEP_EMPTY 0x001 /* keep node if last extent gone */ /* * Flags used by ext2fs_extent_set_bmap() diff --git a/lib/ext2fs/ext3_extents.h b/lib/ext2fs/ext3_extents.h index f73a3321..309fbc8c 100644 --- a/lib/ext2fs/ext3_extents.h +++ b/lib/ext2fs/ext3_extents.h @@ -59,7 +59,7 @@ struct ext3_extent_header { __le16 eh_magic; /* probably will support different formats */ __le16 eh_entries; /* number of valid entries */ __le16 eh_max; /* capacity of store in entries */ - __le16 eh_depth; /* has tree real underlaying blocks? */ + __le16 eh_depth; /* has tree real underlying blocks? */ __le32 eh_generation; /* generation of the tree */ }; diff --git a/lib/ext2fs/get_pathname.c b/lib/ext2fs/get_pathname.c index 4c9c7655..8cfaf6e6 100644 --- a/lib/ext2fs/get_pathname.c +++ b/lib/ext2fs/get_pathname.c @@ -1,5 +1,5 @@ /* - * get_pathname.c --- do directry/inode -> name translation + * get_pathname.c --- do directory/inode -> name translation * * Copyright (C) 1993, 1994, 1995 Theodore Ts'o. * diff --git a/lib/ext2fs/inline_data.c b/lib/ext2fs/inline_data.c index 53016fdb..7215c517 100644 --- a/lib/ext2fs/inline_data.c +++ b/lib/ext2fs/inline_data.c @@ -311,7 +311,7 @@ static errcode_t ext2fs_inline_data_convert_dir(ext2_filsys fs, ext2_ino_t ino, dir->name[1] = '.'; /* - * Ajust the last rec_len + * Adjust the last rec_len */ offset = EXT2_DIR_REC_LEN(1) + EXT2_DIR_REC_LEN(2); dir = (struct ext2_dir_entry *) (bbuf + offset); diff --git a/lib/ext2fs/inode.c b/lib/ext2fs/inode.c index 8dc9ac0d..ad01a9fc 100644 --- a/lib/ext2fs/inode.c +++ b/lib/ext2fs/inode.c @@ -151,7 +151,7 @@ errcode_t ext2fs_open_inode_scan(ext2_filsys fs, int buffer_blocks, */ if (fs->badblocks == 0) { /* - * Temporarly save fs->get_blocks and set it to zero, + * Temporarily save fs->get_blocks and set it to zero, * for compatibility with old e2fsck's. */ save_get_blocks = fs->get_blocks; diff --git a/lib/ext2fs/nt_io.c b/lib/ext2fs/nt_io.c index f0d16ae0..234f6b17 100644 --- a/lib/ext2fs/nt_io.c +++ b/lib/ext2fs/nt_io.c @@ -378,7 +378,7 @@ _MapNtStatus( // -// Helper functions to make things easyer +// Helper functions to make things easier // static @@ -398,7 +398,7 @@ _OpenNtName( IO_STATUS_BLOCK IoStatusBlock; // - // Make Unicode name from inlut string + // Make Unicode name from input string // UnicodeString.Buffer = &Buffer[0]; @@ -411,7 +411,7 @@ _OpenNtName( if(!NT_SUCCESS(Status)) { - return Status; // Unpappable character? + return Status; // Unmappable character? } // @@ -673,7 +673,7 @@ _NormalizeDeviceName( else if('f' == *Device) { // - // 3-d letted should be a digit. + // 3-d letter should be a digit. // if((*(Device + 3) != '\0') || diff --git a/lib/ext2fs/rbtree.h b/lib/ext2fs/rbtree.h index b767a90b..1973b820 100644 --- a/lib/ext2fs/rbtree.h +++ b/lib/ext2fs/rbtree.h @@ -19,7 +19,7 @@ linux/include/linux/rbtree.h To use rbtrees you'll have to implement your own insert and search cores. - This will avoid us to use callbacks and to drop drammatically performances. + This will avoid us to use callbacks and to drop dramatically performances. I know it's not the cleaner way, but in C (not in C++) to get performances and genericity... diff --git a/lib/ext2fs/res_gdt.c b/lib/ext2fs/res_gdt.c index eaa9cf87..45a475d9 100644 --- a/lib/ext2fs/res_gdt.c +++ b/lib/ext2fs/res_gdt.c @@ -104,7 +104,7 @@ errcode_t ext2fs_create_resize_inode(ext2_filsys fs) if (fs->blocksize == 1024 && sb_blk == 0) sb_blk = 1; - /* Maximum possible file size (we donly use the dindirect blocks) */ + /* Maximum possible file size (we only use the indirect blocks) */ apb = EXT2_ADDR_PER_BLOCK(sb); if ((dindir_blk = inode.i_block[EXT2_DIND_BLOCK])) { #ifdef RES_GDT_DEBUG diff --git a/lib/ext2fs/tdb.c b/lib/ext2fs/tdb.c index b36c4858..9c1dd31d 100644 --- a/lib/ext2fs/tdb.c +++ b/lib/ext2fs/tdb.c @@ -712,7 +712,7 @@ int tdb_lockall_unmark(struct tdb_context *tdb) return _tdb_unlockall(tdb, F_WRLCK | TDB_MARK_LOCK); } -/* lock entire database with write lock - nonblocking varient */ +/* lock entire database with write lock - nonblocking variant */ int tdb_lockall_nonblock(struct tdb_context *tdb) { return _tdb_lockall(tdb, F_WRLCK, F_SETLK); @@ -730,7 +730,7 @@ int tdb_lockall_read(struct tdb_context *tdb) return _tdb_lockall(tdb, F_RDLCK, F_SETLKW); } -/* lock entire database with read lock - nonblock varient */ +/* lock entire database with read lock - nonblock variant */ int tdb_lockall_read_nonblock(struct tdb_context *tdb) { return _tdb_lockall(tdb, F_RDLCK, F_SETLK); @@ -1276,7 +1276,7 @@ void tdb_io_init(struct tdb_context *tdb) although once a transaction is started then an exclusive lock is gained until the transaction is committed or cancelled - - the commit stategy involves first saving away all modified data + - the commit strategy involves first saving away all modified data into a linearised buffer in the transaction recovery area, then marking the transaction recovery area with a magic value to indicate a valid recovery record. In total 4 fsync/msync calls are @@ -2323,7 +2323,7 @@ static int update_tailer(struct tdb_context *tdb, tdb_off_t offset, } /* Add an element into the freelist. Merge adjacent records if - neccessary. */ + necessary. */ int tdb_free(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec) { tdb_off_t right, left; @@ -2674,7 +2674,7 @@ static int tdb_next_lock(struct tdb_context *tdb, struct tdb_traverse_lock *tloc that we have done at least one fcntl lock at the start of a search to guarantee that memory is coherent on SMP systems. If records are added by - others during the search then thats OK, and we + others during the search then that's OK, and we could possibly miss those with this trick, but we could miss them anyway without this trick, so the semantics don't change. @@ -2762,7 +2762,7 @@ static int tdb_traverse_internal(struct tdb_context *tdb, struct list_struct rec; int ret, count = 0; - /* This was in the initializaton, above, but the IRIX compiler + /* This was in the initialization, above, but the IRIX compiler * did not like it. crh */ tl->next = tdb->travlocks.next; @@ -4051,7 +4051,7 @@ int tdb_close(struct tdb_context *tdb) return ret; } -/* register a loging function */ +/* register a logging function */ void tdb_set_logging_function(struct tdb_context *tdb, const struct tdb_logging_context *log_ctx) { diff --git a/lib/ext2fs/undo_io.c b/lib/ext2fs/undo_io.c index 776d5b8b..19862414 100644 --- a/lib/ext2fs/undo_io.c +++ b/lib/ext2fs/undo_io.c @@ -381,7 +381,7 @@ static errcode_t undo_write_tdb(io_channel channel, * Read one block using the backing I/O manager * The backing I/O manager block size may be * different from the tdb_data_size. - * Also we need to recalcuate the block number with respect + * Also we need to recalculate the block number with respect * to the backing I/O manager. */ offset = block_num * data->tdb_data_size + diff --git a/lib/ss/ct_c.sed b/lib/ss/ct_c.sed index 8d6452be..9e5eebbe 100644 --- a/lib/ss/ct_c.sed +++ b/lib/ss/ct_c.sed @@ -25,7 +25,7 @@ # an awk script to parse. # -# The first section of this script is just to cannoicalize the file. +# The first section of this script is just to canonicalize the file. # It removes comments, and puts each command_table request onto a single # line # @@ -41,7 +41,7 @@ bFIRST } s/, */, /g # -# Now we take care of some syntatic sugar..... +# Now we take care of some syntactic sugar..... # /^unimplemented/ { s/^unimplemented [A-Za-z_0-9]*/request ss_unimplemented/ diff --git a/lib/support/profile.c b/lib/support/profile.c index ae9a2d9d..9e96673b 100644 --- a/lib/support/profile.c +++ b/lib/support/profile.c @@ -1112,7 +1112,7 @@ errcode_t profile_create_node(const char *name, const char *value, } /* - * This function verifies that all of the representation invarients of + * This function verifies that all of the representation invariants of * the profile are true. If not, we have a programming bug somewhere, * probably in this file. */ diff --git a/lib/support/profile_helpers.c b/lib/support/profile_helpers.c index b8623268..d7d6f15e 100644 --- a/lib/support/profile_helpers.c +++ b/lib/support/profile_helpers.c @@ -179,7 +179,7 @@ cleanup_iterator: } /* - * This function will return the list of the names of subections in the + * This function will return the list of the names of subsections in the * under the specified section name. */ errcode_t diff --git a/lib/support/quotaio.h b/lib/support/quotaio.h index f89536eb..60689700 100644 --- a/lib/support/quotaio.h +++ b/lib/support/quotaio.h @@ -243,7 +243,7 @@ int parse_quota_types(const char *in_str, unsigned int *qtype_bits, * Return pointer to reserved inode field in superblock for given quota type. * * This allows the caller to get or set the quota inode by type without the - * need for the quota array to be contiguous in the superbock. + * need for the quota array to be contiguous in the superblock. */ static inline ext2_ino_t *quota_sb_inump(struct ext2_super_block *sb, enum quota_type qtype) diff --git a/lib/support/quotaio_tree.h b/lib/support/quotaio_tree.h index 0db0ca1e..b0b7257f 100644 --- a/lib/support/quotaio_tree.h +++ b/lib/support/quotaio_tree.h @@ -42,7 +42,7 @@ struct qtree_fmt_operations { int (*is_id)(void *disk, struct dquot *dquot); }; -/* Inmemory copy of version specific information */ +/* In-memory copy of version specific information */ struct qtree_mem_dqinfo { unsigned int dqi_blocks; /* # of blocks in quota file */ unsigned int dqi_free_blk; /* First block in list of free blocks */ diff --git a/lib/uuid/gen_uuid_nt.c b/lib/uuid/gen_uuid_nt.c index 79a40507..9a9a9775 100644 --- a/lib/uuid/gen_uuid_nt.c +++ b/lib/uuid/gen_uuid_nt.c @@ -64,7 +64,7 @@ NtCurrentTeb(void); // // The only way to get version information from the system is to examine -// one stored in PEB. But it's pretty dangerouse because this value could +// one stored in PEB. But it's pretty dangerous because this value could // be altered in image header. // diff --git a/misc/Makefile.in b/misc/Makefile.in index f696d13a..4bb92ace 100644 --- a/misc/Makefile.in +++ b/misc/Makefile.in @@ -118,7 +118,7 @@ DEPLIBS_E2P= $(LIBE2P) $(DEPLIBCOM_ERR) COMPILE_ET= _ET_DIR_OVERRIDE=$(srcdir)/../lib/et/et ../lib/et/compile_et -# This nastyness is needed because of jfs_user.h hackery; when we finally +# This nastiness is needed because of jfs_user.h hackery; when we finally # clean up this mess, we should be able to drop it JOURNAL_CFLAGS = -I$(srcdir)/../e2fsck $(ALL_CFLAGS) -DDEBUGFS DEPEND_CFLAGS = -I$(top_srcdir)/e2fsck diff --git a/misc/create_inode.c b/misc/create_inode.c index 8f7445d0..2dbb433c 100644 --- a/misc/create_inode.c +++ b/misc/create_inode.c @@ -33,7 +33,7 @@ #include "create_inode.h" #include "support/nls-enable.h" -/* 64KiB is the minimium blksize to best minimize system call overhead. */ +/* 64KiB is the minimum blksize to best minimize system call overhead. */ #define COPY_FILE_BUFLEN 65536 static int ext2_file_type(unsigned int mode) diff --git a/misc/e2image.c b/misc/e2image.c index 030f9cbe..be001f0f 100644 --- a/misc/e2image.c +++ b/misc/e2image.c @@ -1109,7 +1109,7 @@ static int update_refcount(int fd, struct ext2_qcow2_image *img, /* * We are relying on the fact that we are creating the qcow2 * image sequentially, hence we will always allocate refcount - * block items sequentialy. + * block items sequentially. */ ref->refcount_block[ref->refcount_block_index] = ext2fs_cpu_to_be16(1); ref->refcount_block_index++; diff --git a/misc/e4crypt.c b/misc/e4crypt.c index 600d0b7a..7b65d145 100644 --- a/misc/e4crypt.c +++ b/misc/e4crypt.c @@ -578,7 +578,7 @@ static void insert_key_into_keyring(const char *keyring, struct salt *salt) * We need to do this instead of simply adding the key to * KEY_SPEC_SESSION_KEYRING since trying to add a key to a * session keyring that does not yet exist will cause the - * kernel to create a session keyring --- which wil then get + * kernel to create a session keyring --- which will then get * garbage collected as soon as e4crypt exits. * * The fact that the keyctl system call and the add_key system diff --git a/misc/e4defrag.c b/misc/e4defrag.c index 5fa85b66..d63343e9 100644 --- a/misc/e4defrag.c +++ b/misc/e4defrag.c @@ -1016,7 +1016,7 @@ static int get_best_count(ext4_fsblk_t block_count) int ret; unsigned int flex_bg_num; - /* Calcuate best extents count */ + /* Calculate best extents count */ if (feature_incompat & EXT4_FEATURE_INCOMPAT_FLEX_BG) { flex_bg_num = 1 << log_groups_per_flex; ret = ((block_count - 1) / @@ -1580,7 +1580,7 @@ static int file_defrag(const char *file, const struct stat64 *buf, goto out; } - /* Calcuate donor inode's continuous physical region */ + /* Calculate donor inode's continuous physical region */ donor_physical_cnt = get_physical_count(donor_list_physical); /* Change donor extent list from physical to logical */ diff --git a/misc/findsuper.c b/misc/findsuper.c index 47aa43af..ff20b988 100644 --- a/misc/findsuper.c +++ b/misc/findsuper.c @@ -30,7 +30,7 @@ * findsuper /dev/hda * findsuper /dev/hda 437760 1024 (my disk has cyls of 855*512) * - * I suppose the next step is to figgure out a way to determine if + * I suppose the next step is to figure out a way to determine if * the block found is the first superblock somehow, and if so, build * a partition table from the superblocks found... but this is still * useful as is. @@ -75,7 +75,7 @@ * For new systems that have a block group number in the superblock it * is immediately clear which superblock is the first of a partition. * For old systems where no group numbers are given, the first - * superblock can be recognised by the timestamp: all superblock + * superblock can be recognized by the timestamp: all superblock * copies have the creation time in s_mtime, except the first, which * has the last time e2fsck or tune2fs wrote to the filesystem. * diff --git a/misc/fsck.c b/misc/fsck.c index 7c93ee82..de5ae256 100644 --- a/misc/fsck.c +++ b/misc/fsck.c @@ -997,7 +997,7 @@ static int check_all(NOARGS) } /* * This is for the bone-headed user who enters the root - * filesystem twice. Skip root will skep all root entries. + * filesystem twice. Skip root will skip all root entries. */ if (skip_root) for (fs = filesys_info; fs; fs = fs->next) diff --git a/misc/fsck.h b/misc/fsck.h index 8a0f70e3..8a55fbd6 100644 --- a/misc/fsck.h +++ b/misc/fsck.h @@ -34,7 +34,7 @@ #define EXIT_LIBRARY 128 /* - * Internal structure for mount tabel entries. + * Internal structure for mount table entries. */ struct fs_info { diff --git a/misc/logsave.c b/misc/logsave.c index 6a624dea..96b6d8e0 100644 --- a/misc/logsave.c +++ b/misc/logsave.c @@ -52,7 +52,7 @@ static void usage(char *progname) /* * Helper function that does the right thing if write returns a - * partial write, or an EGAIN/EINTR error. + * partial write, or an EAGAIN/EINTR error. */ static int write_all(int fd, const char *buf, size_t count) { diff --git a/misc/tune2fs.h b/misc/tune2fs.h index 7b7e431e..f31c8322 100644 --- a/misc/tune2fs.h +++ b/misc/tune2fs.h @@ -14,8 +14,8 @@ extern "C" { #endif -/* Takes exactly the same args as the tune2fs exectuable. - * Is the entrypoint for libtune2fs. +/* Takes exactly the same args as the tune2fs executable. + * Is the entry point for libtune2fs. */ int tune2fs_main(int argc, char **argv); diff --git a/resize/extent.c b/resize/extent.c index ec81b944..e5ca16c0 100644 --- a/resize/extent.c +++ b/resize/extent.c @@ -8,7 +8,7 @@ * Copyright (C) 1997, 1998 by Theodore Ts'o and * PowerQuest, Inc. * - * Copyright (C) 1999, 2000 by Theosore Ts'o + * Copyright (C) 1999, 2000 by Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public diff --git a/resize/main.c b/resize/main.c index ab7375c1..ba6bb6b1 100644 --- a/resize/main.c +++ b/resize/main.c @@ -422,7 +422,7 @@ int main (int argc, char ** argv) * unless the user is forcing it. * * We do ERROR and VALID checks even if we're only printing the - * minimimum size, because traversal of a badly damaged filesystem + * minimum size, because traversal of a badly damaged filesystem * can cause issues as well. We don't require it to be fscked after * the last mount time in this case, though, as this is a bit less * risky. diff --git a/resize/online.c b/resize/online.c index 9a4d828c..f0c214b1 100644 --- a/resize/online.c +++ b/resize/online.c @@ -201,7 +201,7 @@ errcode_t online_resize_fs(ext2_filsys fs, const char *mtpt, } /* The current method of adding one block group at a time to a - * mounted filesystem means it is impossible to accomodate the + * mounted filesystem means it is impossible to accommodate the * flex_bg allocation method of placing the metadata together * in a single block group. For now we "fix" this issue by * using the traditional layout for new block groups, where diff --git a/resize/resize2fs.c b/resize/resize2fs.c index 20a0c463..b53141a2 100644 --- a/resize/resize2fs.c +++ b/resize/resize2fs.c @@ -4,7 +4,7 @@ * Copyright (C) 1997, 1998 by Theodore Ts'o and * PowerQuest, Inc. * - * Copyright (C) 1999, 2000 by Theosore Ts'o + * Copyright (C) 1999, 2000 by Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public @@ -80,7 +80,7 @@ static int is_inode_tb(ext2_filsys fs, unsigned int grp, blk64_t blk) fs->inode_blocks_per_group); } -/* Some bigalloc helper macros which are more succint... */ +/* Some bigalloc helper macros which are more succinct... */ #define B2C(x) EXT2FS_B2C(fs, (x)) #define C2B(x) EXT2FS_C2B(fs, (x)) #define EQ_CLSTR(x, y) (B2C(x) == B2C(y)) @@ -578,7 +578,7 @@ out: } /* - * Clean up the bitmaps for unitialized bitmaps + * Clean up the bitmaps for uninitialized bitmaps */ static void fix_uninit_block_bitmaps(ext2_filsys fs) { @@ -932,7 +932,7 @@ retry: /* * If we changed the number of block_group descriptor blocks, * we need to make sure they are all marked as reserved in the - * file systems's block allocation map. + * file systems' block allocation map. */ for (i = 0; i < old_fs->group_desc_count; i++) ext2fs_reserve_super_and_bgd(fs, i, fs->block_map); @@ -1503,7 +1503,7 @@ static errcode_t blocks_to_move(ext2_resize_t rfs) /* * For those structures that have changed, we need to - * do bookkeepping. + * do bookkeeping. */ if (ext2fs_block_bitmap_loc(old_fs, i) != (blk = ext2fs_block_bitmap_loc(fs, i))) { @@ -2939,7 +2939,7 @@ static int calc_group_overhead(ext2_filsys fs, blk64_t grp, /* - * calcluate the minimum number of blocks the given fs can be resized to + * calculate the minimum number of blocks the given fs can be resized to */ blk64_t calculate_minimum_resize_size(ext2_filsys fs, int flags) { @@ -3032,7 +3032,7 @@ blk64_t calculate_minimum_resize_size(ext2_filsys fs, int flags) #endif /* - * if we need more group descriptors in order to accomodate our data + * if we need more group descriptors in order to accommodate our data * then we need to add them here */ blks_needed = data_needed; diff --git a/resize/resize2fs.h b/resize/resize2fs.h index 829fcd8e..f9f58f20 100644 --- a/resize/resize2fs.h +++ b/resize/resize2fs.h @@ -4,7 +4,7 @@ * Copyright (C) 1997, 1998 by Theodore Ts'o and * PowerQuest, Inc. * - * Copyright (C) 1999, 2000 by Theosore Ts'o + * Copyright (C) 1999, 2000 by Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public diff --git a/resize/sim_progress.c b/resize/sim_progress.c index d4206ba2..321becdf 100644 --- a/resize/sim_progress.c +++ b/resize/sim_progress.c @@ -4,7 +4,7 @@ * Copyright (C) 1997, 1998 by Theodore Ts'o and * PowerQuest, Inc. * - * Copyright (C) 1999, 2000 by Theosore Ts'o + * Copyright (C) 1999, 2000 by Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public diff --git a/resize/test_extent.c b/resize/test_extent.c index 60aa08f3..5e9aed79 100644 --- a/resize/test_extent.c +++ b/resize/test_extent.c @@ -4,7 +4,7 @@ * Copyright (C) 1997, 1998 by Theodore Ts'o and * PowerQuest, Inc. * - * Copyright (C) 1999, 2000 by Theosore Ts'o + * Copyright (C) 1999, 2000 by Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public diff --git a/util/gen-tarball.in b/util/gen-tarball.in index a3a02cef..6f087d1a 100644 --- a/util/gen-tarball.in +++ b/util/gen-tarball.in @@ -12,7 +12,7 @@ GZIP=gzip # # This hack is needed because texi2dvi blows up horribly if there are -# any '~' chracters in the directory pathname. So we kludge around it by +# any '~' characters in the directory path name. So we kludge around it by # using a non-standard directory name for WIP releases. dpkg-source # complains, but life goes on. # diff --git a/util/subst.c b/util/subst.c index e745d863..b37633d2 100644 --- a/util/subst.c +++ b/util/subst.c @@ -1,7 +1,7 @@ /* * subst.c --- substitution program * - * Subst is used as a quicky program to do @ substitutions + * Subst is used as a quickie program to do @ substitutions * */ diff --git a/util/symlinks.c b/util/symlinks.c index 600effac..e9d2b011 100644 --- a/util/symlinks.c +++ b/util/symlinks.c @@ -126,7 +126,7 @@ static int shorten_path (char *path, char *abspath) /* get rid of unnecessary "../dir" sequences */ while (abspath && strlen(abspath) > 1 && (p = strstr(path,"../"))) { - /* find innermost occurance of "../dir", and save "dir" */ + /* find innermost occurrence of "../dir", and save "dir" */ int slashes = 2; char *a, *s, *d = dir; while ((s = strstr(p+3, "../"))) { -- 2.14.2 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] Fix typos in code comments and developer docs. 2017-10-14 18:44 ` [PATCH 2/3] Fix typos in code comments and developer docs Sebastian Rasmussen @ 2017-10-14 22:29 ` Andreas Dilger 2017-10-15 0:38 ` Sebastian Rasmussen 0 siblings, 1 reply; 7+ messages in thread From: Andreas Dilger @ 2017-10-14 22:29 UTC (permalink / raw) To: Sebastian Rasmussen; +Cc: tytso, linux-ext4 [-- Attachment #1: Type: text/plain, Size: 2756 bytes --] On Oct 14, 2017, at 12:44 PM, Sebastian Rasmussen <sebras@gmail.com> wrote: > > Signed-off-by: Sebastian Rasmussen <sebras@gmail.com> Did you use a tool to extract comments and then run this through a spell checker, or actually read all of the comments manually? Some of the errors are very hard to notice, even when already knowing the line has a correction. Some minor comments below. Reviewed-by: Andreas Dilger <adilger@dilger.ca> > diff --git a/lib/ext2fs/nt_io.c b/lib/ext2fs/nt_io.c > index f0d16ae0..234f6b17 100644 > --- a/lib/ext2fs/nt_io.c > +++ b/lib/ext2fs/nt_io.c > @@ -673,7 +673,7 @@ _NormalizeDeviceName( > else if('f' == *Device) > { > // > - // 3-d letted should be a digit. > + // 3-d letter should be a digit. This should probably be "3rd letter"? > diff --git a/lib/ext2fs/res_gdt.c b/lib/ext2fs/res_gdt.c > index eaa9cf87..45a475d9 100644 > --- a/lib/ext2fs/res_gdt.c > +++ b/lib/ext2fs/res_gdt.c > @@ -104,7 +104,7 @@ errcode_t ext2fs_create_resize_inode(ext2_filsys fs) > if (fs->blocksize == 1024 && sb_blk == 0) > sb_blk = 1; > > - /* Maximum possible file size (we donly use the dindirect blocks) */ > + /* Maximum possible file size (we only use the indirect blocks) */ The "donly" typo should be fixed, but "dindirect" is not a typo. This means "double indirect blocks". Maybe "(we only use double indirect blocks)" so that it still fits on a single line? > #ifdef RES_GDT_DEBUG > diff --git a/lib/ext2fs/tdb.c b/lib/ext2fs/tdb.c > index b36c4858..9c1dd31d 100644 > --- a/lib/ext2fs/tdb.c > +++ b/lib/ext2fs/tdb.c Since the "tdb" code was copied from another project, you might consider to also submit these corrections to the original project. > diff --git a/resize/resize2fs.c b/resize/resize2fs.c > index 20a0c463..b53141a2 100644 > --- a/resize/resize2fs.c > +++ b/resize/resize2fs.c > @@ -932,7 +932,7 @@ retry: > /* > * If we changed the number of block_group descriptor blocks, > * we need to make sure they are all marked as reserved in the > - * file systems's block allocation map. > + * file systems' block allocation map. This should probably be "filesystem's" since there is only one filesystem in question, and its block allocation map. > diff --git a/util/gen-tarball.in b/util/gen-tarball.in > index a3a02cef..6f087d1a 100644 > --- a/util/gen-tarball.in > +++ b/util/gen-tarball.in > @@ -12,7 +12,7 @@ GZIP=gzip > > # > # This hack is needed because texi2dvi blows up horribly if there are > -# any '~' chracters in the directory pathname. So we kludge around it by > +# any '~' characters in the directory path name. So we kludge around it by IMHO, "pathname" is OK. Cheers, Andreas [-- Attachment #2: Message signed with OpenPGP --] [-- Type: application/pgp-signature, Size: 195 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] Fix typos in code comments and developer docs. 2017-10-14 22:29 ` Andreas Dilger @ 2017-10-15 0:38 ` Sebastian Rasmussen 0 siblings, 0 replies; 7+ messages in thread From: Sebastian Rasmussen @ 2017-10-15 0:38 UTC (permalink / raw) To: Andreas Dilger; +Cc: tytso, linux-ext4 [-- Attachment #1: Type: text/plain, Size: 1102 bytes --] Hi! > Did you use a tool to extract comments and then run this through a spell > checker, or actually read all of the comments manually? Some of the > errors are very hard to notice, even when already knowing the line has > a correction. I simply ran aspell over the unchanged source code (aspell reads C code better than you'd expect!), incrementally adding correctly spelled unknown words to a private dictionary and fixing the typos that aspell found. Finally I categorized the typos since I didn't know if you'd want typos that are invisible to end users fixed. >> + // 3-d letter should be a digit. > This should probably be "3rd letter"? I was wondering what that 3D letter was all about. 3rd makes better sense. I have attached a new version of the patch to this mail. > Since the "tdb" code was copied from another project, you might > consider to also submit these corrections to the original project. I have started doing the same to the code over at https://git.samba.org/samba.git/?p=ctdb.git Hopefully they will be equally happy about getting a patch. :) / Sebastian [-- Attachment #2: 0002-Fix-typos-in-code-comments-and-developer-docs.patch --] [-- Type: text/x-patch, Size: 58118 bytes --] From 5e20550979ff98204bac7bac18103ba72ccfa89e Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen <sebras@gmail.com> Date: Sun, 8 Oct 2017 13:30:08 +0200 Subject: [PATCH 2/3] Fix typos in code comments and developer docs. Signed-off-by: Sebastian Rasmussen <sebras@gmail.com> --- INSTALL | 2 +- INSTALL.elfbin | 2 +- TODO | 4 ++-- aclocal.m4 | 4 ++-- configure.ac | 6 +++--- contrib/add_ext4_encrypt.c | 2 +- contrib/android/basefs_allocator.c | 2 +- debian/rules | 2 +- debian/uuid-dev.README.Debian | 4 ++-- debugfs/Makefile.in | 2 +- debugfs/logdump.c | 2 +- debugfs/set_fields.c | 2 +- debugfs/util.c | 2 +- e2fsck/message.c | 2 +- e2fsck/pass1.c | 6 +++--- e2fsck/pass1b.c | 2 +- e2fsck/pass2.c | 4 ++-- e2fsck/pass3.c | 2 +- e2fsck/pass5.c | 2 +- e2fsck/problem.c | 6 +++--- e2fsck/problem.h | 10 +++++----- e2fsck/recovery.c | 4 ++-- e2fsck/region.c | 2 +- e2fsck/unix.c | 2 +- e2fsck/util.c | 2 +- ext2ed/README | 6 +++--- ext2ed/dir_com.c | 2 +- ext2ed/disk.c | 2 +- ext2ed/ext2ed.conf.in | 4 ++-- ext2ed/ext2ed.h | 4 ++-- ext2ed/init.c | 2 +- ext2ed/main.c | 10 +++++----- intl/dcigettext.c | 2 +- intl/l10nflist.c | 2 +- intl/libgettext.h | 2 +- intl/xsize.h | 2 +- lib/blkid/dev.c | 2 +- lib/blkid/probe.h | 2 +- lib/blkid/tag.c | 2 +- lib/et/com_right.c | 2 +- lib/ext2fs/Makefile.in | 2 +- lib/ext2fs/alloc_tables.c | 2 +- lib/ext2fs/bb_inode.c | 2 +- lib/ext2fs/bitops.c | 2 +- lib/ext2fs/blkmap64_rb.c | 2 +- lib/ext2fs/ext2_fs.h | 4 ++-- lib/ext2fs/ext2fs.h | 4 ++-- lib/ext2fs/ext3_extents.h | 2 +- lib/ext2fs/get_pathname.c | 2 +- lib/ext2fs/inline_data.c | 2 +- lib/ext2fs/inode.c | 2 +- lib/ext2fs/nt_io.c | 8 ++++---- lib/ext2fs/rbtree.h | 2 +- lib/ext2fs/res_gdt.c | 2 +- lib/ext2fs/tdb.c | 14 +++++++------- lib/ext2fs/undo_io.c | 2 +- lib/ss/ct_c.sed | 4 ++-- lib/support/profile.c | 2 +- lib/support/profile_helpers.c | 2 +- lib/support/quotaio.h | 2 +- lib/support/quotaio_tree.h | 2 +- lib/uuid/gen_uuid_nt.c | 2 +- misc/Makefile.in | 2 +- misc/create_inode.c | 2 +- misc/e2image.c | 2 +- misc/e4crypt.c | 2 +- misc/e4defrag.c | 4 ++-- misc/findsuper.c | 4 ++-- misc/fsck.c | 2 +- misc/fsck.h | 2 +- misc/logsave.c | 2 +- misc/tune2fs.h | 4 ++-- resize/extent.c | 2 +- resize/main.c | 2 +- resize/online.c | 2 +- resize/resize2fs.c | 14 +++++++------- resize/resize2fs.h | 2 +- resize/sim_progress.c | 2 +- resize/test_extent.c | 2 +- util/gen-tarball.in | 2 +- util/subst.c | 2 +- util/symlinks.c | 2 +- 82 files changed, 126 insertions(+), 126 deletions(-) diff --git a/INSTALL b/INSTALL index b5afd2f5..2dd08f53 100644 --- a/INSTALL +++ b/INSTALL @@ -56,7 +56,7 @@ frequency, and the fsck pass number, respectively. The problem with this is that the getmntent() library routine interprets those missing fields as "0", and a pass number of 0 is documented as meaning that fsck should not check that particular filesystem. If your entries in -your /etc/fstab file look liks this: +your /etc/fstab file look like this: /dev/hda4 / ext2 defaults diff --git a/INSTALL.elfbin b/INSTALL.elfbin index 3f54aa10..9c2c6006 100644 --- a/INSTALL.elfbin +++ b/INSTALL.elfbin @@ -35,7 +35,7 @@ frequency, and the fsck pass number, respectively. The problem with this is that the getmntent() library routine interprets those missing fields as "0", and a pass number of 0 is documented as meaning that fsck should not check that particular filesystem. If your entries in -your /etc/fstab file look liks this: +your /etc/fstab file look like this: /dev/hda4 / ext2 defaults diff --git a/TODO b/TODO index d531d175..a622bec1 100644 --- a/TODO +++ b/TODO @@ -29,7 +29,7 @@ Date: Mon, 08 Mar 1999 21:46:14 +0100 From: Sergio Polini <s.polini@mclink.it> -I'm reading the sorce code of e2fsck 1.14. +I'm reading the source code of e2fsck 1.14. In pass2.c, lines 352-357, I read: if ((dirent->name_len & 0xFF) > EXT2_NAME_LEN) { @@ -72,7 +72,7 @@ directories by using debugfs to get the relevant block numbers, then using dd to get the actual data. If debugfs had a feature where it ignored the size of a directory reported by -the inode and instead just dumped all the blocks, it would have facilited +the inode and instead just dumped all the blocks, it would have facilitated things a bit. This seems like a very easy feature to add. Again, thanks for writing debugfs (and all the other Linux stuff you've written!). diff --git a/aclocal.m4 b/aclocal.m4 index 4cf123a1..cfb42cd1 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1884,7 +1884,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], fi ]) dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. + dnl $LDFLAGS. Using breadth-first-search. LIB[]NAME= LTLIB[]NAME= INC[]NAME= @@ -2912,7 +2912,7 @@ fi[]dnl # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -# only at the first occurence in configure.ac, so if the first place +# only at the first occurrence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- diff --git a/configure.ac b/configure.ac index 1314c385..4ec46170 100644 --- a/configure.ac +++ b/configure.ac @@ -124,8 +124,8 @@ else fi AC_USE_SYSTEM_EXTENSIONS dnl -dnl Set default values for library extentions. Will be dealt with after -dnl parsing configuration opions, which may modify these +dnl Set default values for library extensions. Will be dealt with after +dnl parsing configuration options, which may modify these dnl LIB_EXT=.a STATIC_LIB_EXT=.a @@ -977,7 +977,7 @@ AC_CHECK_HEADERS(net/if.h,,, ]]) AC_FUNC_VPRINTF dnl Check to see if dirent has member d_reclen. On cygwin those d_reclen -dnl is not decleared. +dnl is not declared. AC_CHECK_MEMBER(struct dirent.d_reclen,[AC_DEFINE(HAVE_RECLEN_DIRENT, 1, [Define to 1 if dirent has d_reclen])],, [#include <dirent.h>]) diff --git a/contrib/add_ext4_encrypt.c b/contrib/add_ext4_encrypt.c index d4e7c8c5..133fe253 100644 --- a/contrib/add_ext4_encrypt.c +++ b/contrib/add_ext4_encrypt.c @@ -1,5 +1,5 @@ /* - * Basic progam to add ext4 encryption to a file system + * Basic program to add ext4 encryption to a file system * * Copyright 2015, Google, Inc. * diff --git a/contrib/android/basefs_allocator.c b/contrib/android/basefs_allocator.c index 3d014a22..76d183c9 100644 --- a/contrib/android/basefs_allocator.c +++ b/contrib/android/basefs_allocator.c @@ -55,7 +55,7 @@ errcode_t base_fs_alloc_load(ext2_filsys fs, const char *file, allocator->cur_entry = NULL; allocator->entries = entries; - /* Overhide the default allocator */ + /* Override the default allocator */ fs->get_alloc_block2 = basefs_block_allocator; fs->priv_data = allocator; diff --git a/debian/rules b/debian/rules index 81eafc31..94fe7069 100755 --- a/debian/rules +++ b/debian/rules @@ -304,7 +304,7 @@ install: cleanup install-std # This rule allows to factorize the dh_clean between the 2 install rules # This must be launched before install-* (if launching them by hand, for -# exemple) or results are unpredictable +# example) or results are unpredictable cleanup: dh_testdir dh_testroot diff --git a/debian/uuid-dev.README.Debian b/debian/uuid-dev.README.Debian index 3d8cc89c..a4f047e3 100644 --- a/debian/uuid-dev.README.Debian +++ b/debian/uuid-dev.README.Debian @@ -1,5 +1,5 @@ -In order to santize e2fsprogs to be DFSG free, the file +In order to sanitize e2fsprogs to be DFSG free, the file draft-leach-uuids-guids-01.txt has been removed. It can be obtained by downloading e2fsprogs from the upstream sources. It may also be available from other sites on the network, if you do a quick web @@ -16,7 +16,7 @@ the documentation which has been removed for Debian's DFSG license purity shouldn't be denied to Ubuntu users. Theodore Ts'o - Ocotober 3, 2006 + October 3, 2006 diff --git a/debugfs/Makefile.in b/debugfs/Makefile.in index 408a3236..57940cde 100644 --- a/debugfs/Makefile.in +++ b/debugfs/Makefile.in @@ -46,7 +46,7 @@ STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBSS) \ $(DEPSTATIC_LIBCOM_ERR) $(DEPSTATIC_LIBUUID) \ $(DEPSTATIC_LIBE2P) -# This nastyness is needed because of jfs_user.h hackery; when we finally +# This nastiness is needed because of jfs_user.h hackery; when we finally # clean up this mess, we should be able to drop it LOCAL_CFLAGS = -I$(srcdir)/../e2fsck -DDEBUGFS DEPEND_CFLAGS = -I$(srcdir) diff --git a/debugfs/logdump.c b/debugfs/logdump.c index 6ff5ad1f..864f234c 100644 --- a/debugfs/logdump.c +++ b/debugfs/logdump.c @@ -1,7 +1,7 @@ /* * logdump.c --- dump the contents of the journal out to a file * - * Authro: Stephen C. Tweedie, 2001 <sct@redhat.com> + * Author: Stephen C. Tweedie, 2001 <sct@redhat.com> * Copyright (C) 2001 Red Hat, Inc. * Based on portions Copyright (C) 1994 Theodore Ts'o. * diff --git a/debugfs/set_fields.c b/debugfs/set_fields.c index ca688622..8dfbba9c 100644 --- a/debugfs/set_fields.c +++ b/debugfs/set_fields.c @@ -429,7 +429,7 @@ static struct field_set_info *find_field(struct field_set_info *fields, /* * Note: info->size == 6 is special; this means a base size 4 bytes, - * and secondiory (high) size of 2 bytes. This is needed for the + * and secondary (high) size of 2 bytes. This is needed for the * special case of i_blocks_high and i_file_acl_high. */ static errcode_t parse_uint(struct field_set_info *info, char *field, diff --git a/debugfs/util.c b/debugfs/util.c index 5f101f48..452de749 100644 --- a/debugfs/util.c +++ b/debugfs/util.c @@ -210,7 +210,7 @@ char *time_to_string(__s64 cl) const char *tz; if (do_gmt == -1) { - /* The diet libc doesn't respect the TZ environemnt variable */ + /* The diet libc doesn't respect the TZ environment variable */ tz = ss_safe_getenv("TZ"); if (!tz) tz = ""; diff --git a/e2fsck/message.c b/e2fsck/message.c index 0d47a3a4..727f71d5 100644 --- a/e2fsck/message.c +++ b/e2fsck/message.c @@ -224,7 +224,7 @@ static void print_time(FILE *f, time_t t) static int do_gmt = -1; #ifdef __dietlibc__ - /* The diet libc doesn't respect the TZ environemnt variable */ + /* The diet libc doesn't respect the TZ environment variable */ if (do_gmt == -1) { time_str = getenv("TZ"); if (!time_str) diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c index f7593ff0..5015d938 100644 --- a/e2fsck/pass1.c +++ b/e2fsck/pass1.c @@ -30,7 +30,7 @@ * * Pass 1 is designed to stash away enough information so that the * other passes should not need to read in the inode information - * during the normal course of a filesystem check. (Althogh if an + * during the normal course of a filesystem check. (Although if an * inconsistency is detected, other passes may need to read in an * inode to fix it.) * @@ -1688,7 +1688,7 @@ void e2fsck_pass1(e2fsck_t ctx) /* * Make sure the root inode is a directory; if * not, offer to clear it. It will be - * regnerated in pass #3. + * regenerated in pass #3. */ if (!LINUX_S_ISDIR(inode->i_mode)) { if (fix_problem(ctx, PR_1_ROOT_NO_DIR, &pctx)) @@ -4156,7 +4156,7 @@ static void mark_table_blocks(e2fsck_t ctx) } /* - * Thes subroutines short circuits ext2fs_get_blocks and + * These subroutines short circuits ext2fs_get_blocks and * ext2fs_check_directory; we use them since we already have the inode * structure, so there's no point in letting the ext2fs library read * the inode again. diff --git a/e2fsck/pass1b.c b/e2fsck/pass1b.c index d22cffd3..392ff2c6 100644 --- a/e2fsck/pass1b.c +++ b/e2fsck/pass1b.c @@ -919,7 +919,7 @@ static errcode_t clone_file(e2fsck_t ctx, ext2_ino_t ino, sizeof(dp->inode), "clone file EA"); /* * If we cloned the EA block, find all other inodes - * which refered to that EA block, and modify + * which referred to that EA block, and modify * them to point to the new EA block. */ n = dict_lookup(&clstr_dict, diff --git a/e2fsck/pass2.c b/e2fsck/pass2.c index 09b79c3b..09c16179 100644 --- a/e2fsck/pass2.c +++ b/e2fsck/pass2.c @@ -1635,7 +1635,7 @@ static int deallocate_inode_block(ext2_filsys fs, } /* - * This fuction deallocates an inode + * This function deallocates an inode */ static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf) { @@ -1705,7 +1705,7 @@ clear_inode: } /* - * This fuction clears the htree flag on an inode + * This function clears the htree flag on an inode */ static void clear_htree(e2fsck_t ctx, ext2_ino_t ino) { diff --git a/e2fsck/pass3.c b/e2fsck/pass3.c index 4d9430bb..6a975b36 100644 --- a/e2fsck/pass3.c +++ b/e2fsck/pass3.c @@ -15,7 +15,7 @@ * not, e2fsck will offer to create a new one. It is then marked as * "done". * - * Then, pass3 interates over all directory inodes; for each directory + * Then, pass3 iterates over all directory inodes; for each directory * it attempts to trace up the filesystem tree, using dirinfo.parent * until it reaches a directory which has been marked "done". If it * can not do so, then the directory must be disconnected, and e2fsck diff --git a/e2fsck/pass5.c b/e2fsck/pass5.c index ab736496..7803e8b8 100644 --- a/e2fsck/pass5.c +++ b/e2fsck/pass5.c @@ -300,7 +300,7 @@ static void print_bitmap_problem(e2fsck_t ctx, problem_t problem, pctx->ino = pctx->ino2 = 0; } -/* Just to be more succint */ +/* Just to be more succinct */ #define B2C(x) EXT2FS_B2C(fs, (x)) #define EQ_CLSTR(x, y) (B2C(x) == B2C(y)) #define LE_CLSTR(x, y) (B2C(x) <= B2C(y)) diff --git a/e2fsck/problem.c b/e2fsck/problem.c index 2bb8d4e2..edc9d51f 100644 --- a/e2fsck/problem.c +++ b/e2fsck/problem.c @@ -174,7 +174,7 @@ static struct e2fsck_problem problem_table[] = { N_("Corruption found in @S. (%s = %N).\n"), PROMPT_NONE, PR_AFTER_CODE, PR_0_SB_CORRUPT }, - /* Error determing physical device size of filesystem */ + /* Error determining physical device size of filesystem */ { PR_0_GETSIZE_ERROR, N_("Error determining size of the physical @v: %m\n"), PROMPT_NONE, PR_FATAL }, @@ -1328,7 +1328,7 @@ static struct e2fsck_problem problem_table[] = { N_("@E has @D/unused @i %Di. "), PROMPT_CLEAR, PR_PREEN_OK }, - /* Directry entry is link to '.' */ + /* Directory entry is link to '.' */ { PR_2_LINK_DOT, N_("@E @L to '.' "), PROMPT_CLEAR, 0 }, @@ -1343,7 +1343,7 @@ static struct e2fsck_problem problem_table[] = { N_("@E @L to @d %P (%Di).\n"), PROMPT_CLEAR, 0 }, - /* Directory entry contains a link to the root directry */ + /* Directory entry contains a link to the root directory */ { PR_2_LINK_ROOT, N_("@E @L to the @r.\n"), PROMPT_CLEAR, 0 }, diff --git a/e2fsck/problem.h b/e2fsck/problem.h index 49a8c3ad..482d111a 100644 --- a/e2fsck/problem.h +++ b/e2fsck/problem.h @@ -91,7 +91,7 @@ struct problem_context { /* Miscellaneous superblock corruption */ #define PR_0_MISC_CORRUPT_SUPER 0x00000B -/* Error determing physical device size of filesystem */ +/* Error determining physical device size of filesystem */ #define PR_0_GETSIZE_ERROR 0x00000C /* Inode count in the superblock incorrect */ @@ -794,7 +794,7 @@ struct problem_context { /* Directory entry has deleted or unused inode */ #define PR_2_UNUSED_INODE 0x020003 -/* Directry entry is link to '.' */ +/* Directory entry is link to '.' */ #define PR_2_LINK_DOT 0x020004 /* Directory entry points to inode now located in a bad block */ @@ -803,7 +803,7 @@ struct problem_context { /* Directory entry contains a link to a directory */ #define PR_2_LINK_DIR 0x020006 -/* Directory entry contains a link to the root directry */ +/* Directory entry contains a link to the root directory */ #define PR_2_LINK_ROOT 0x020007 /* Directory entry has illegal characters in its name */ @@ -1093,7 +1093,7 @@ struct problem_context { #define PR_3_LPF_ENCRYPTED 0x03001B /* - * Pass 3a --- rehashing diretories + * Pass 3a --- rehashing directories */ /* Pass 3a: Reindexing directories */ #define PR_3A_PASS_HEADER 0x031000 @@ -1210,7 +1210,7 @@ struct problem_context { /* Inode range not used, but marked in bitmap */ #define PR_5_INODE_RANGE_UNUSED 0x050016 -/* Inode rangeused, but not marked used in bitmap */ +/* Inode range used, but not marked used in bitmap */ #define PR_5_INODE_RANGE_USED 0x050017 /* Block in use but group is marked BLOCK_UNINIT */ diff --git a/e2fsck/recovery.c b/e2fsck/recovery.c index 4c457b39..81110e4d 100644 --- a/e2fsck/recovery.c +++ b/e2fsck/recovery.c @@ -325,7 +325,7 @@ int journal_recover(journal_t *journal) * Locate any valid recovery information from the journal and set up the * journal structures in memory to ignore it (presumably because the * caller has evidence that it is out of date). - * This function does'nt appear to be exorted.. + * This function doesn't appear to be exported.. * * We perform one pass over the journal to allow us to tell the user how * much recovery information is being erased, and to let us initialise @@ -689,7 +689,7 @@ static int do_one_pass(journal_t *journal, * | GO TO NEXT "Journal Corruption" * | TRANSACTION * | - * {(n+1)th transanction} + * {(n+1)th transaction} * | * _______|______________ * | | diff --git a/e2fsck/region.c b/e2fsck/region.c index 95d23be4..d5b37df8 100644 --- a/e2fsck/region.c +++ b/e2fsck/region.c @@ -84,7 +84,7 @@ int region_allocate(region_t region, region_addr_t start, int n) /* * Search through the linked list. If we find that it - * conflicts witih something that's already allocated, return + * conflicts with something that's already allocated, return * 1; if we can find an existing region which we can grow, do * so. Otherwise, stop when we find the appropriate place * insert a new region element into the linked list. diff --git a/e2fsck/unix.c b/e2fsck/unix.c index 939862f1..b46dcb2d 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -1214,7 +1214,7 @@ static errcode_t e2fsck_check_mmp(ext2_filsys fs, e2fsck_t ctx) if (retval) goto check_error; - /* Print warning if e2fck will wait for more than 20 secs. */ + /* Print warning if e2fsck will wait for more than 20 secs. */ if (verbose || wait_time > EXT4_MMP_MIN_CHECK_INTERVAL * 4) { log_out(ctx, _("MMP interval is %u seconds and total wait " "time is %u seconds. Please wait...\n"), diff --git a/e2fsck/util.c b/e2fsck/util.c index a297e58f..ed947025 100644 --- a/e2fsck/util.c +++ b/e2fsck/util.c @@ -735,7 +735,7 @@ int check_for_modules(const char *fs_name) /* * Helper function that does the right thing if write returns a - * partial write, or an EGAIN/EINTR error. + * partial write, or an EAGAIN/EINTR error. */ int write_all(int fd, char *buf, size_t count) { diff --git a/ext2ed/README b/ext2ed/README index fda4b87c..1f473cf4 100644 --- a/ext2ed/README +++ b/ext2ed/README @@ -48,10 +48,10 @@ This is version 0.2 of ext2ed - The extended-2 filesystem editor. Modifications on Apr 5 2001 This is minor bug fixes to ext2ed, as of April 2001. It supports modern ext2 version that has file type in directory structure -and fixes the missunderstanding between ncurses and +and fixes the misunderstanding between ncurses and readline. -I first applied patches from Redhat except the one for readline that +I first applied patches from Red Hat except the one for readline that rewrote a readline behavior. Globals diffs between version 0.1 and 0.2 is stored in file : @@ -114,7 +114,7 @@ that ncurses will be properly installed on your system: set your TERM environment variable to 'linux' or link l/linux to c/console in the terminfo database. -4. The percompiled binary was linked with ncurses 1.9.4 and will search +4. The precompiled binary was linked with ncurses 1.9.4 and will search for the terminfo database on /usr/local/lib/terminfo. If you are using it, and your 1.9.4 compatible terminfo database is not on the directory above, use the TERMINFO environment variable to specify diff --git a/ext2ed/dir_com.c b/ext2ed/dir_com.c index ba852676..67bb4b57 100644 --- a/ext2ed/dir_com.c +++ b/ext2ed/dir_com.c @@ -539,7 +539,7 @@ void type_dir___remember (char *command_line) /* -This is overrided here because we don't remember a directory - It is too complicated. Instead, we remember the +This is overridden here because we don't remember a directory - It is too complicated. Instead, we remember the inode of the current directory. */ diff --git a/ext2ed/disk.c b/ext2ed/disk.c index 70ece943..4612d00d 100644 --- a/ext2ed/disk.c +++ b/ext2ed/disk.c @@ -14,7 +14,7 @@ double check the various permissions and possible errors here. The major update which needs to be done here is switching to the use of the llseek system call, so that we will be able to support ext2 filesystems up to 4 TB. Currently, due to the standard fseek usage, we can't handle filesystems bigger than 4 GB. The limit is actually 2 GB because I used long rather than unsigned long long at too -many places in the program. To conclude - This upgrade needs to be done carefuly; There are many places to change. +many places in the program. To conclude - This upgrade needs to be done carefully; There are many places to change. First written on: April 9 1995 diff --git a/ext2ed/ext2ed.conf.in b/ext2ed/ext2ed.conf.in index 7e2a9255..c0796234 100644 --- a/ext2ed/ext2ed.conf.in +++ b/ext2ed/ext2ed.conf.in @@ -52,8 +52,8 @@ AllowMountedRead on # When ForceExt2 is set to on, the filesystem is assumed to be ext2 # filesystem, despite the possibly corrupt superblock magic number reading. -# All the ext2 specific commands will be aviable despite the possible -# autodetection failture. +# All the ext2 specific commands will be available despite the possible +# autodetection failure. ForceExt2 off diff --git a/ext2ed/ext2ed.h b/ext2ed/ext2ed.h index b9b43b47..0ac77b7a 100644 --- a/ext2ed/ext2ed.h +++ b/ext2ed/ext2ed.h @@ -249,7 +249,7 @@ void signal_SIGSEGV_handler (int sig_num); /* general_com.c */ -/* General commands which are aviable always */ +/* General commands which are available always */ extern void help (char *command_line); extern void set (char *command_line); @@ -275,7 +275,7 @@ void detailed_help (char *text); /* ext2_com.c */ -/* Extended2 filesystem genereal commands - Aviable only when editing an +/* Extended2 filesystem general commands - Available only when editing an ext2 filesystem */ extern void type_ext2___super (char *command_line); diff --git a/ext2ed/init.c b/ext2ed/init.c index 718c0d08..4e584317 100644 --- a/ext2ed/init.c +++ b/ext2ed/init.c @@ -57,7 +57,7 @@ int init (void) general_commands.last_command=-1; /* No commands whatsoever meanwhile */ ext2_commands.last_command=-1; - add_general_commands (); /* Add the general commands, aviable always */ + add_general_commands (); /* Add the general commands, available always */ device_handle=NULL; /* Notice that our device is still not set up */ device_offset=-1; current_type=NULL; /* No filesystem specific types yet */ diff --git a/ext2ed/main.c b/ext2ed/main.c index 4a29979b..f7e7d7df 100644 --- a/ext2ed/main.c +++ b/ext2ed/main.c @@ -14,7 +14,7 @@ This file mostly contains: 2. The parser, which asks the command line from the user. 3. The dispatcher, which analyzes the command line and calls the appropriate handler function. 4. A command pattern matcher which is used along with the readline completion feature. -5. A function which tells the user that an internal error has occured. +5. A function which tells the user that an internal error has occurred. First written on: March 30 1995 @@ -57,7 +57,7 @@ They are initialized below to some logical defaults. char Ext2Descriptors [200]="ext2.descriptors"; /* The location of the ext2 filesystem object definition */ char AlternateDescriptors [200]=""; /* We allow the user to define additional structures */ char LogFile [200]="ext2ed.log"; /* The location of the log file - Each write will be logged there */ -int LogChanges=1; /* 1 enables logging, 0 diables logging */ +int LogChanges=1; /* 1 enables logging, 0 disables logging */ int AllowChanges=0; /* When set, the enablewrite command will fail */ int AllowMountedRead=0; /* Behavior when trying to open a mounted filesystem read-only */ int ForceExt2=0; /* When set, ext2 autodetection is overridden */ @@ -334,7 +334,7 @@ void parser (void) /* - * This is a very important function. Its task is to recieve a command + * This is a very important function. Its task is to receive a command * name and link it to a C function. There are three types of commands: * * 1. General commands - Always available and accessed through @@ -354,7 +354,7 @@ void parser (void) * * When an handling function is found, it is called along with the * command line that was passed to us. The handling function is then - * free to interpert the arguments in its own style. + * free to interpret the arguments in its own style. */ int dispatch (char *command_line) { @@ -480,7 +480,7 @@ char *complete_command (char *text,int state) } } - /* No, pehaps ext2 specific command then ? */ + /* No, perhaps ext2 specific command then ? */ for (i=0;i<=ext2_commands.last_command;i++) { if (strncmp (ext2_commands.names [i],text,len)==0) { diff --git a/intl/dcigettext.c b/intl/dcigettext.c index 79678cf8..f5a99b50 100644 --- a/intl/dcigettext.c +++ b/intl/dcigettext.c @@ -602,7 +602,7 @@ DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, /* When this is a SUID binary we must not allow accessing files outside the dedicated directories. */ if (ENABLE_SECURE && IS_PATH_WITH_DIR (single_locale)) - /* Ingore this entry. */ + /* Ignore this entry. */ continue; } diff --git a/intl/l10nflist.c b/intl/l10nflist.c index 3393ecb5..c13d36da 100644 --- a/intl/l10nflist.c +++ b/intl/l10nflist.c @@ -242,7 +242,7 @@ _nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list, } if ((mask & (XPG_MODIFIER | CEN_AUDIENCE)) != 0) { - /* This component can be part of both syntaces but has different + /* This component can be part of both syntaxes but has different leading characters. For CEN we use `+', else `@'. */ *cp++ = (mask & CEN_AUDIENCE) != 0 ? '+' : '@'; cp = stpcpy (cp, modifier); diff --git a/intl/libgettext.h b/intl/libgettext.h index 3a92960a..c069fbd5 100644 --- a/intl/libgettext.h +++ b/intl/libgettext.h @@ -84,7 +84,7 @@ extern int _msg_tbl_length; #endif -/* For automatical extraction of messages sometimes no real +/* For automatic extraction of messages sometimes no real translation is needed. Instead the string itself is the result. */ #define gettext_noop(Str) (Str) diff --git a/intl/xsize.h b/intl/xsize.h index 362e24b7..e3707fa1 100644 --- a/intl/xsize.h +++ b/intl/xsize.h @@ -95,7 +95,7 @@ xmax (size_t size1, size_t size2) /* Multiplication of a count with an element size, with overflow check. The count must be >= 0 and the element size must be > 0. This is a macro, not an inline function, so that it works correctly even - when N is of a wider tupe and N > SIZE_MAX. */ + when N is of a wider type and N > SIZE_MAX. */ #define xtimes(N, ELSIZE) \ ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX) diff --git a/lib/blkid/dev.c b/lib/blkid/dev.c index 6d8eaeac..d35513e4 100644 --- a/lib/blkid/dev.c +++ b/lib/blkid/dev.c @@ -91,7 +91,7 @@ void blkid_debug_dump_dev(blkid_dev dev) * * These routines do not expose the list.h implementation, which are a * contamination of the namespace, and which force us to reveal far, far - * too much of our internal implemenation. I'm not convinced I want + * too much of our internal implementation. I'm not convinced I want * to keep list.h in the long term, anyway. It's fine for kernel * programming, but performance is not the #1 priority for this * library, and I really don't like the tradeoff of type-safety for diff --git a/lib/blkid/probe.h b/lib/blkid/probe.h index c46a3325..dea4081d 100644 --- a/lib/blkid/probe.h +++ b/lib/blkid/probe.h @@ -663,7 +663,7 @@ struct btrfs_dev_item { /* * starting byte of this partition on the device, - * to allowr for stripe alignment in the future + * to allow for stripe alignment in the future */ __u64 start_offset; diff --git a/lib/blkid/tag.c b/lib/blkid/tag.c index 1eae7df7..e88ebc46 100644 --- a/lib/blkid/tag.c +++ b/lib/blkid/tag.c @@ -261,7 +261,7 @@ errout: * * These routines do not expose the list.h implementation, which are a * contamination of the namespace, and which force us to reveal far, far - * too much of our internal implemenation. I'm not convinced I want + * too much of our internal implementation. I'm not convinced I want * to keep list.h in the long term, anyway. It's fine for kernel * programming, but performance is not the #1 priority for this * library, and I really don't like the tradeoff of type-safety for diff --git a/lib/et/com_right.c b/lib/et/com_right.c index 2cceb54c..a4ed5354 100644 --- a/lib/et/com_right.c +++ b/lib/et/com_right.c @@ -1,6 +1,6 @@ /* * com_right.c -- provide Heimdall / Kerberos4kth com_err interfaces - * for backwards compatbility + * for backwards compatibility * * Copyright (c) 2003 by Theodore Ts'o * diff --git a/lib/ext2fs/Makefile.in b/lib/ext2fs/Makefile.in index b729f619..946cae16 100644 --- a/lib/ext2fs/Makefile.in +++ b/lib/ext2fs/Makefile.in @@ -5,7 +5,7 @@ top_builddir = ../.. my_dir = lib/ext2fs INSTALL = @INSTALL@ DEPEND_CFLAGS = -I$(top_srcdir)/debugfs -I$(srcdir)/../../e2fsck -DDEBUGFS -# This nastyness is needed because of jfs_user.h hackery; when we finally +# This nastiness is needed because of jfs_user.h hackery; when we finally # clean up this mess, we should be able to drop it DEBUGFS_CFLAGS = -I$(srcdir)/../../e2fsck $(ALL_CFLAGS) -DDEBUGFS diff --git a/lib/ext2fs/alloc_tables.c b/lib/ext2fs/alloc_tables.c index da0b15bf..6261c42a 100644 --- a/lib/ext2fs/alloc_tables.c +++ b/lib/ext2fs/alloc_tables.c @@ -33,7 +33,7 @@ * This routine searches for free blocks that can allocate a full * group of bitmaps or inode tables for a flexbg group. Returns the * block number with a correct offset were the bitmaps and inode - * tables can be allocated continously and in order. + * tables can be allocated continuously and in order. */ static blk64_t flexbg_offset(ext2_filsys fs, dgrp_t group, blk64_t start_blk, ext2fs_block_bitmap bmap, int rem_grp, diff --git a/lib/ext2fs/bb_inode.c b/lib/ext2fs/bb_inode.c index b0e114bb..11f10ebc 100644 --- a/lib/ext2fs/bb_inode.c +++ b/lib/ext2fs/bb_inode.c @@ -96,7 +96,7 @@ errcode_t ext2fs_update_bb_inode(ext2_filsys fs, ext2_badblocks_list bb_list) * Now set the bad blocks! * * First, mark the bad blocks as used. This prevents a bad - * block from being used as an indirecto block for the bad + * block from being used as an indirect block for the bad * block inode (!). */ if (bb_list) { diff --git a/lib/ext2fs/bitops.c b/lib/ext2fs/bitops.c index 833d1e97..c4a1d4e0 100644 --- a/lib/ext2fs/bitops.c +++ b/lib/ext2fs/bitops.c @@ -24,7 +24,7 @@ /* * For the benefit of those who are trying to port Linux to another * architecture, here are some C-language equivalents. You should - * recode these in the native assmebly language, if at all possible. + * recode these in the native assembly language, if at all possible. * * C language equivalents written by Theodore Ts'o, 9/26/92. * Modified by Pete A. Zaitcev 7/14/95 to be portable to big endian diff --git a/lib/ext2fs/blkmap64_rb.c b/lib/ext2fs/blkmap64_rb.c index 8d5ddd3f..55704774 100644 --- a/lib/ext2fs/blkmap64_rb.c +++ b/lib/ext2fs/blkmap64_rb.c @@ -555,7 +555,7 @@ static int rb_remove_extent(__u64 start, __u64 count, retval = 1; continue; } else { - /* modify the last extent in reigon to be removed */ + /* modify the last extent in region to be removed */ ext->count -= ((start + count) - ext->start); ext->start = start + count; retval = 1; diff --git a/lib/ext2fs/ext2_fs.h b/lib/ext2fs/ext2_fs.h index 3b55000e..2496d16d 100644 --- a/lib/ext2fs/ext2_fs.h +++ b/lib/ext2fs/ext2_fs.h @@ -970,7 +970,7 @@ struct ext2_dir_entry { * bigger than 255 chars, it's safe to reclaim the extra byte for the * file_type field. * - * This structure is deprecated due to endianity issues. Please use struct + * This structure is deprecated due to endian issues. Please use struct * ext2_dir_entry and accessor functions * ext2fs_dirent_name_len * ext2fs_dirent_set_name_len @@ -1048,7 +1048,7 @@ struct ext2_dir_entry_tail { * regardless of how old the timestamp is. * * The timestamp in the MMP structure will be updated by e2fsck at some - * arbitary intervals (start of passes, after every few groups of inodes + * arbitrary intervals (start of passes, after every few groups of inodes * in pass1 and pass1b). There is no guarantee that e2fsck is updating * the MMP block in a timely manner, and the updates it does are purely * for the convenience of the sysadmin and not for automatic validation. diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h index a4feaccc..6774e32c 100644 --- a/lib/ext2fs/ext2fs.h +++ b/lib/ext2fs/ext2fs.h @@ -329,7 +329,7 @@ struct struct_ext2_filsys { * * BLOCK_FLAG_DEPTH_TRAVERSE indicates that the iterator function for * the indirect, doubly indirect, etc. blocks should be called after - * all of the blocks containined in the indirect blocks are processed. + * all of the blocks contained in the indirect blocks are processed. * This is useful if you are going to be deallocating blocks from an * inode. * @@ -423,7 +423,7 @@ typedef struct ext2_extent_path *ext2_extent_path_t; /* * Flags used by ext2fs_extent_delete() */ -#define EXT2_EXTENT_DELETE_KEEP_EMPTY 0x001 /* keep node if last extnt gone */ +#define EXT2_EXTENT_DELETE_KEEP_EMPTY 0x001 /* keep node if last extent gone */ /* * Flags used by ext2fs_extent_set_bmap() diff --git a/lib/ext2fs/ext3_extents.h b/lib/ext2fs/ext3_extents.h index f73a3321..309fbc8c 100644 --- a/lib/ext2fs/ext3_extents.h +++ b/lib/ext2fs/ext3_extents.h @@ -59,7 +59,7 @@ struct ext3_extent_header { __le16 eh_magic; /* probably will support different formats */ __le16 eh_entries; /* number of valid entries */ __le16 eh_max; /* capacity of store in entries */ - __le16 eh_depth; /* has tree real underlaying blocks? */ + __le16 eh_depth; /* has tree real underlying blocks? */ __le32 eh_generation; /* generation of the tree */ }; diff --git a/lib/ext2fs/get_pathname.c b/lib/ext2fs/get_pathname.c index 4c9c7655..8cfaf6e6 100644 --- a/lib/ext2fs/get_pathname.c +++ b/lib/ext2fs/get_pathname.c @@ -1,5 +1,5 @@ /* - * get_pathname.c --- do directry/inode -> name translation + * get_pathname.c --- do directory/inode -> name translation * * Copyright (C) 1993, 1994, 1995 Theodore Ts'o. * diff --git a/lib/ext2fs/inline_data.c b/lib/ext2fs/inline_data.c index 53016fdb..7215c517 100644 --- a/lib/ext2fs/inline_data.c +++ b/lib/ext2fs/inline_data.c @@ -311,7 +311,7 @@ static errcode_t ext2fs_inline_data_convert_dir(ext2_filsys fs, ext2_ino_t ino, dir->name[1] = '.'; /* - * Ajust the last rec_len + * Adjust the last rec_len */ offset = EXT2_DIR_REC_LEN(1) + EXT2_DIR_REC_LEN(2); dir = (struct ext2_dir_entry *) (bbuf + offset); diff --git a/lib/ext2fs/inode.c b/lib/ext2fs/inode.c index 8dc9ac0d..ad01a9fc 100644 --- a/lib/ext2fs/inode.c +++ b/lib/ext2fs/inode.c @@ -151,7 +151,7 @@ errcode_t ext2fs_open_inode_scan(ext2_filsys fs, int buffer_blocks, */ if (fs->badblocks == 0) { /* - * Temporarly save fs->get_blocks and set it to zero, + * Temporarily save fs->get_blocks and set it to zero, * for compatibility with old e2fsck's. */ save_get_blocks = fs->get_blocks; diff --git a/lib/ext2fs/nt_io.c b/lib/ext2fs/nt_io.c index f0d16ae0..234f6b17 100644 --- a/lib/ext2fs/nt_io.c +++ b/lib/ext2fs/nt_io.c @@ -378,7 +378,7 @@ _MapNtStatus( // -// Helper functions to make things easyer +// Helper functions to make things easier // static @@ -398,7 +398,7 @@ _OpenNtName( IO_STATUS_BLOCK IoStatusBlock; // - // Make Unicode name from inlut string + // Make Unicode name from input string // UnicodeString.Buffer = &Buffer[0]; @@ -411,7 +411,7 @@ _OpenNtName( if(!NT_SUCCESS(Status)) { - return Status; // Unpappable character? + return Status; // Unmappable character? } // @@ -673,7 +673,7 @@ _NormalizeDeviceName( else if('f' == *Device) { // - // 3-d letted should be a digit. + // 3-d letter should be a digit. // if((*(Device + 3) != '\0') || diff --git a/lib/ext2fs/rbtree.h b/lib/ext2fs/rbtree.h index b767a90b..1973b820 100644 --- a/lib/ext2fs/rbtree.h +++ b/lib/ext2fs/rbtree.h @@ -19,7 +19,7 @@ linux/include/linux/rbtree.h To use rbtrees you'll have to implement your own insert and search cores. - This will avoid us to use callbacks and to drop drammatically performances. + This will avoid us to use callbacks and to drop dramatically performances. I know it's not the cleaner way, but in C (not in C++) to get performances and genericity... diff --git a/lib/ext2fs/res_gdt.c b/lib/ext2fs/res_gdt.c index eaa9cf87..6bcf01e1 100644 --- a/lib/ext2fs/res_gdt.c +++ b/lib/ext2fs/res_gdt.c @@ -104,7 +104,7 @@ errcode_t ext2fs_create_resize_inode(ext2_filsys fs) if (fs->blocksize == 1024 && sb_blk == 0) sb_blk = 1; - /* Maximum possible file size (we donly use the dindirect blocks) */ + /* Maximum possible file size (we only use double indirect blocks) */ apb = EXT2_ADDR_PER_BLOCK(sb); if ((dindir_blk = inode.i_block[EXT2_DIND_BLOCK])) { #ifdef RES_GDT_DEBUG diff --git a/lib/ext2fs/tdb.c b/lib/ext2fs/tdb.c index b36c4858..9c1dd31d 100644 --- a/lib/ext2fs/tdb.c +++ b/lib/ext2fs/tdb.c @@ -712,7 +712,7 @@ int tdb_lockall_unmark(struct tdb_context *tdb) return _tdb_unlockall(tdb, F_WRLCK | TDB_MARK_LOCK); } -/* lock entire database with write lock - nonblocking varient */ +/* lock entire database with write lock - nonblocking variant */ int tdb_lockall_nonblock(struct tdb_context *tdb) { return _tdb_lockall(tdb, F_WRLCK, F_SETLK); @@ -730,7 +730,7 @@ int tdb_lockall_read(struct tdb_context *tdb) return _tdb_lockall(tdb, F_RDLCK, F_SETLKW); } -/* lock entire database with read lock - nonblock varient */ +/* lock entire database with read lock - nonblock variant */ int tdb_lockall_read_nonblock(struct tdb_context *tdb) { return _tdb_lockall(tdb, F_RDLCK, F_SETLK); @@ -1276,7 +1276,7 @@ void tdb_io_init(struct tdb_context *tdb) although once a transaction is started then an exclusive lock is gained until the transaction is committed or cancelled - - the commit stategy involves first saving away all modified data + - the commit strategy involves first saving away all modified data into a linearised buffer in the transaction recovery area, then marking the transaction recovery area with a magic value to indicate a valid recovery record. In total 4 fsync/msync calls are @@ -2323,7 +2323,7 @@ static int update_tailer(struct tdb_context *tdb, tdb_off_t offset, } /* Add an element into the freelist. Merge adjacent records if - neccessary. */ + necessary. */ int tdb_free(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec) { tdb_off_t right, left; @@ -2674,7 +2674,7 @@ static int tdb_next_lock(struct tdb_context *tdb, struct tdb_traverse_lock *tloc that we have done at least one fcntl lock at the start of a search to guarantee that memory is coherent on SMP systems. If records are added by - others during the search then thats OK, and we + others during the search then that's OK, and we could possibly miss those with this trick, but we could miss them anyway without this trick, so the semantics don't change. @@ -2762,7 +2762,7 @@ static int tdb_traverse_internal(struct tdb_context *tdb, struct list_struct rec; int ret, count = 0; - /* This was in the initializaton, above, but the IRIX compiler + /* This was in the initialization, above, but the IRIX compiler * did not like it. crh */ tl->next = tdb->travlocks.next; @@ -4051,7 +4051,7 @@ int tdb_close(struct tdb_context *tdb) return ret; } -/* register a loging function */ +/* register a logging function */ void tdb_set_logging_function(struct tdb_context *tdb, const struct tdb_logging_context *log_ctx) { diff --git a/lib/ext2fs/undo_io.c b/lib/ext2fs/undo_io.c index 776d5b8b..19862414 100644 --- a/lib/ext2fs/undo_io.c +++ b/lib/ext2fs/undo_io.c @@ -381,7 +381,7 @@ static errcode_t undo_write_tdb(io_channel channel, * Read one block using the backing I/O manager * The backing I/O manager block size may be * different from the tdb_data_size. - * Also we need to recalcuate the block number with respect + * Also we need to recalculate the block number with respect * to the backing I/O manager. */ offset = block_num * data->tdb_data_size + diff --git a/lib/ss/ct_c.sed b/lib/ss/ct_c.sed index 8d6452be..9e5eebbe 100644 --- a/lib/ss/ct_c.sed +++ b/lib/ss/ct_c.sed @@ -25,7 +25,7 @@ # an awk script to parse. # -# The first section of this script is just to cannoicalize the file. +# The first section of this script is just to canonicalize the file. # It removes comments, and puts each command_table request onto a single # line # @@ -41,7 +41,7 @@ bFIRST } s/, */, /g # -# Now we take care of some syntatic sugar..... +# Now we take care of some syntactic sugar..... # /^unimplemented/ { s/^unimplemented [A-Za-z_0-9]*/request ss_unimplemented/ diff --git a/lib/support/profile.c b/lib/support/profile.c index ae9a2d9d..9e96673b 100644 --- a/lib/support/profile.c +++ b/lib/support/profile.c @@ -1112,7 +1112,7 @@ errcode_t profile_create_node(const char *name, const char *value, } /* - * This function verifies that all of the representation invarients of + * This function verifies that all of the representation invariants of * the profile are true. If not, we have a programming bug somewhere, * probably in this file. */ diff --git a/lib/support/profile_helpers.c b/lib/support/profile_helpers.c index b8623268..d7d6f15e 100644 --- a/lib/support/profile_helpers.c +++ b/lib/support/profile_helpers.c @@ -179,7 +179,7 @@ cleanup_iterator: } /* - * This function will return the list of the names of subections in the + * This function will return the list of the names of subsections in the * under the specified section name. */ errcode_t diff --git a/lib/support/quotaio.h b/lib/support/quotaio.h index f89536eb..60689700 100644 --- a/lib/support/quotaio.h +++ b/lib/support/quotaio.h @@ -243,7 +243,7 @@ int parse_quota_types(const char *in_str, unsigned int *qtype_bits, * Return pointer to reserved inode field in superblock for given quota type. * * This allows the caller to get or set the quota inode by type without the - * need for the quota array to be contiguous in the superbock. + * need for the quota array to be contiguous in the superblock. */ static inline ext2_ino_t *quota_sb_inump(struct ext2_super_block *sb, enum quota_type qtype) diff --git a/lib/support/quotaio_tree.h b/lib/support/quotaio_tree.h index 0db0ca1e..b0b7257f 100644 --- a/lib/support/quotaio_tree.h +++ b/lib/support/quotaio_tree.h @@ -42,7 +42,7 @@ struct qtree_fmt_operations { int (*is_id)(void *disk, struct dquot *dquot); }; -/* Inmemory copy of version specific information */ +/* In-memory copy of version specific information */ struct qtree_mem_dqinfo { unsigned int dqi_blocks; /* # of blocks in quota file */ unsigned int dqi_free_blk; /* First block in list of free blocks */ diff --git a/lib/uuid/gen_uuid_nt.c b/lib/uuid/gen_uuid_nt.c index 79a40507..9a9a9775 100644 --- a/lib/uuid/gen_uuid_nt.c +++ b/lib/uuid/gen_uuid_nt.c @@ -64,7 +64,7 @@ NtCurrentTeb(void); // // The only way to get version information from the system is to examine -// one stored in PEB. But it's pretty dangerouse because this value could +// one stored in PEB. But it's pretty dangerous because this value could // be altered in image header. // diff --git a/misc/Makefile.in b/misc/Makefile.in index f696d13a..4bb92ace 100644 --- a/misc/Makefile.in +++ b/misc/Makefile.in @@ -118,7 +118,7 @@ DEPLIBS_E2P= $(LIBE2P) $(DEPLIBCOM_ERR) COMPILE_ET= _ET_DIR_OVERRIDE=$(srcdir)/../lib/et/et ../lib/et/compile_et -# This nastyness is needed because of jfs_user.h hackery; when we finally +# This nastiness is needed because of jfs_user.h hackery; when we finally # clean up this mess, we should be able to drop it JOURNAL_CFLAGS = -I$(srcdir)/../e2fsck $(ALL_CFLAGS) -DDEBUGFS DEPEND_CFLAGS = -I$(top_srcdir)/e2fsck diff --git a/misc/create_inode.c b/misc/create_inode.c index 8f7445d0..2dbb433c 100644 --- a/misc/create_inode.c +++ b/misc/create_inode.c @@ -33,7 +33,7 @@ #include "create_inode.h" #include "support/nls-enable.h" -/* 64KiB is the minimium blksize to best minimize system call overhead. */ +/* 64KiB is the minimum blksize to best minimize system call overhead. */ #define COPY_FILE_BUFLEN 65536 static int ext2_file_type(unsigned int mode) diff --git a/misc/e2image.c b/misc/e2image.c index 030f9cbe..be001f0f 100644 --- a/misc/e2image.c +++ b/misc/e2image.c @@ -1109,7 +1109,7 @@ static int update_refcount(int fd, struct ext2_qcow2_image *img, /* * We are relying on the fact that we are creating the qcow2 * image sequentially, hence we will always allocate refcount - * block items sequentialy. + * block items sequentially. */ ref->refcount_block[ref->refcount_block_index] = ext2fs_cpu_to_be16(1); ref->refcount_block_index++; diff --git a/misc/e4crypt.c b/misc/e4crypt.c index 600d0b7a..7b65d145 100644 --- a/misc/e4crypt.c +++ b/misc/e4crypt.c @@ -578,7 +578,7 @@ static void insert_key_into_keyring(const char *keyring, struct salt *salt) * We need to do this instead of simply adding the key to * KEY_SPEC_SESSION_KEYRING since trying to add a key to a * session keyring that does not yet exist will cause the - * kernel to create a session keyring --- which wil then get + * kernel to create a session keyring --- which will then get * garbage collected as soon as e4crypt exits. * * The fact that the keyctl system call and the add_key system diff --git a/misc/e4defrag.c b/misc/e4defrag.c index 5fa85b66..d63343e9 100644 --- a/misc/e4defrag.c +++ b/misc/e4defrag.c @@ -1016,7 +1016,7 @@ static int get_best_count(ext4_fsblk_t block_count) int ret; unsigned int flex_bg_num; - /* Calcuate best extents count */ + /* Calculate best extents count */ if (feature_incompat & EXT4_FEATURE_INCOMPAT_FLEX_BG) { flex_bg_num = 1 << log_groups_per_flex; ret = ((block_count - 1) / @@ -1580,7 +1580,7 @@ static int file_defrag(const char *file, const struct stat64 *buf, goto out; } - /* Calcuate donor inode's continuous physical region */ + /* Calculate donor inode's continuous physical region */ donor_physical_cnt = get_physical_count(donor_list_physical); /* Change donor extent list from physical to logical */ diff --git a/misc/findsuper.c b/misc/findsuper.c index 47aa43af..ff20b988 100644 --- a/misc/findsuper.c +++ b/misc/findsuper.c @@ -30,7 +30,7 @@ * findsuper /dev/hda * findsuper /dev/hda 437760 1024 (my disk has cyls of 855*512) * - * I suppose the next step is to figgure out a way to determine if + * I suppose the next step is to figure out a way to determine if * the block found is the first superblock somehow, and if so, build * a partition table from the superblocks found... but this is still * useful as is. @@ -75,7 +75,7 @@ * For new systems that have a block group number in the superblock it * is immediately clear which superblock is the first of a partition. * For old systems where no group numbers are given, the first - * superblock can be recognised by the timestamp: all superblock + * superblock can be recognized by the timestamp: all superblock * copies have the creation time in s_mtime, except the first, which * has the last time e2fsck or tune2fs wrote to the filesystem. * diff --git a/misc/fsck.c b/misc/fsck.c index 7c93ee82..de5ae256 100644 --- a/misc/fsck.c +++ b/misc/fsck.c @@ -997,7 +997,7 @@ static int check_all(NOARGS) } /* * This is for the bone-headed user who enters the root - * filesystem twice. Skip root will skep all root entries. + * filesystem twice. Skip root will skip all root entries. */ if (skip_root) for (fs = filesys_info; fs; fs = fs->next) diff --git a/misc/fsck.h b/misc/fsck.h index 8a0f70e3..8a55fbd6 100644 --- a/misc/fsck.h +++ b/misc/fsck.h @@ -34,7 +34,7 @@ #define EXIT_LIBRARY 128 /* - * Internal structure for mount tabel entries. + * Internal structure for mount table entries. */ struct fs_info { diff --git a/misc/logsave.c b/misc/logsave.c index 6a624dea..96b6d8e0 100644 --- a/misc/logsave.c +++ b/misc/logsave.c @@ -52,7 +52,7 @@ static void usage(char *progname) /* * Helper function that does the right thing if write returns a - * partial write, or an EGAIN/EINTR error. + * partial write, or an EAGAIN/EINTR error. */ static int write_all(int fd, const char *buf, size_t count) { diff --git a/misc/tune2fs.h b/misc/tune2fs.h index 7b7e431e..f31c8322 100644 --- a/misc/tune2fs.h +++ b/misc/tune2fs.h @@ -14,8 +14,8 @@ extern "C" { #endif -/* Takes exactly the same args as the tune2fs exectuable. - * Is the entrypoint for libtune2fs. +/* Takes exactly the same args as the tune2fs executable. + * Is the entry point for libtune2fs. */ int tune2fs_main(int argc, char **argv); diff --git a/resize/extent.c b/resize/extent.c index ec81b944..e5ca16c0 100644 --- a/resize/extent.c +++ b/resize/extent.c @@ -8,7 +8,7 @@ * Copyright (C) 1997, 1998 by Theodore Ts'o and * PowerQuest, Inc. * - * Copyright (C) 1999, 2000 by Theosore Ts'o + * Copyright (C) 1999, 2000 by Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public diff --git a/resize/main.c b/resize/main.c index ab7375c1..ba6bb6b1 100644 --- a/resize/main.c +++ b/resize/main.c @@ -422,7 +422,7 @@ int main (int argc, char ** argv) * unless the user is forcing it. * * We do ERROR and VALID checks even if we're only printing the - * minimimum size, because traversal of a badly damaged filesystem + * minimum size, because traversal of a badly damaged filesystem * can cause issues as well. We don't require it to be fscked after * the last mount time in this case, though, as this is a bit less * risky. diff --git a/resize/online.c b/resize/online.c index 9a4d828c..f0c214b1 100644 --- a/resize/online.c +++ b/resize/online.c @@ -201,7 +201,7 @@ errcode_t online_resize_fs(ext2_filsys fs, const char *mtpt, } /* The current method of adding one block group at a time to a - * mounted filesystem means it is impossible to accomodate the + * mounted filesystem means it is impossible to accommodate the * flex_bg allocation method of placing the metadata together * in a single block group. For now we "fix" this issue by * using the traditional layout for new block groups, where diff --git a/resize/resize2fs.c b/resize/resize2fs.c index 20a0c463..0bd325ba 100644 --- a/resize/resize2fs.c +++ b/resize/resize2fs.c @@ -4,7 +4,7 @@ * Copyright (C) 1997, 1998 by Theodore Ts'o and * PowerQuest, Inc. * - * Copyright (C) 1999, 2000 by Theosore Ts'o + * Copyright (C) 1999, 2000 by Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public @@ -80,7 +80,7 @@ static int is_inode_tb(ext2_filsys fs, unsigned int grp, blk64_t blk) fs->inode_blocks_per_group); } -/* Some bigalloc helper macros which are more succint... */ +/* Some bigalloc helper macros which are more succinct... */ #define B2C(x) EXT2FS_B2C(fs, (x)) #define C2B(x) EXT2FS_C2B(fs, (x)) #define EQ_CLSTR(x, y) (B2C(x) == B2C(y)) @@ -578,7 +578,7 @@ out: } /* - * Clean up the bitmaps for unitialized bitmaps + * Clean up the bitmaps for uninitialized bitmaps */ static void fix_uninit_block_bitmaps(ext2_filsys fs) { @@ -932,7 +932,7 @@ retry: /* * If we changed the number of block_group descriptor blocks, * we need to make sure they are all marked as reserved in the - * file systems's block allocation map. + * filesystem's block allocation map. */ for (i = 0; i < old_fs->group_desc_count; i++) ext2fs_reserve_super_and_bgd(fs, i, fs->block_map); @@ -1503,7 +1503,7 @@ static errcode_t blocks_to_move(ext2_resize_t rfs) /* * For those structures that have changed, we need to - * do bookkeepping. + * do bookkeeping. */ if (ext2fs_block_bitmap_loc(old_fs, i) != (blk = ext2fs_block_bitmap_loc(fs, i))) { @@ -2939,7 +2939,7 @@ static int calc_group_overhead(ext2_filsys fs, blk64_t grp, /* - * calcluate the minimum number of blocks the given fs can be resized to + * calculate the minimum number of blocks the given fs can be resized to */ blk64_t calculate_minimum_resize_size(ext2_filsys fs, int flags) { @@ -3032,7 +3032,7 @@ blk64_t calculate_minimum_resize_size(ext2_filsys fs, int flags) #endif /* - * if we need more group descriptors in order to accomodate our data + * if we need more group descriptors in order to accommodate our data * then we need to add them here */ blks_needed = data_needed; diff --git a/resize/resize2fs.h b/resize/resize2fs.h index 829fcd8e..f9f58f20 100644 --- a/resize/resize2fs.h +++ b/resize/resize2fs.h @@ -4,7 +4,7 @@ * Copyright (C) 1997, 1998 by Theodore Ts'o and * PowerQuest, Inc. * - * Copyright (C) 1999, 2000 by Theosore Ts'o + * Copyright (C) 1999, 2000 by Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public diff --git a/resize/sim_progress.c b/resize/sim_progress.c index d4206ba2..321becdf 100644 --- a/resize/sim_progress.c +++ b/resize/sim_progress.c @@ -4,7 +4,7 @@ * Copyright (C) 1997, 1998 by Theodore Ts'o and * PowerQuest, Inc. * - * Copyright (C) 1999, 2000 by Theosore Ts'o + * Copyright (C) 1999, 2000 by Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public diff --git a/resize/test_extent.c b/resize/test_extent.c index 60aa08f3..5e9aed79 100644 --- a/resize/test_extent.c +++ b/resize/test_extent.c @@ -4,7 +4,7 @@ * Copyright (C) 1997, 1998 by Theodore Ts'o and * PowerQuest, Inc. * - * Copyright (C) 1999, 2000 by Theosore Ts'o + * Copyright (C) 1999, 2000 by Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public diff --git a/util/gen-tarball.in b/util/gen-tarball.in index a3a02cef..6b90acb6 100644 --- a/util/gen-tarball.in +++ b/util/gen-tarball.in @@ -12,7 +12,7 @@ GZIP=gzip # # This hack is needed because texi2dvi blows up horribly if there are -# any '~' chracters in the directory pathname. So we kludge around it by +# any '~' characters in the directory pathname. So we kludge around it by # using a non-standard directory name for WIP releases. dpkg-source # complains, but life goes on. # diff --git a/util/subst.c b/util/subst.c index e745d863..b37633d2 100644 --- a/util/subst.c +++ b/util/subst.c @@ -1,7 +1,7 @@ /* * subst.c --- substitution program * - * Subst is used as a quicky program to do @ substitutions + * Subst is used as a quickie program to do @ substitutions * */ diff --git a/util/symlinks.c b/util/symlinks.c index 600effac..e9d2b011 100644 --- a/util/symlinks.c +++ b/util/symlinks.c @@ -126,7 +126,7 @@ static int shorten_path (char *path, char *abspath) /* get rid of unnecessary "../dir" sequences */ while (abspath && strlen(abspath) > 1 && (p = strstr(path,"../"))) { - /* find innermost occurance of "../dir", and save "dir" */ + /* find innermost occurrence of "../dir", and save "dir" */ int slashes = 2; char *a, *s, *d = dir; while ((s = strstr(p+3, "../"))) { -- 2.14.2 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] e2fsprogs: Fixes typos in code and docs. 2017-10-14 18:44 [PATCH 0/3] e2fsprogs: Fixes typos in code and docs Sebastian Rasmussen 2017-10-14 18:44 ` [PATCH 1/3] Fix typos in error messages and documentation Sebastian Rasmussen 2017-10-14 18:44 ` [PATCH 2/3] Fix typos in code comments and developer docs Sebastian Rasmussen @ 2017-10-16 3:23 ` Theodore Ts'o 2 siblings, 0 replies; 7+ messages in thread From: Theodore Ts'o @ 2017-10-16 3:23 UTC (permalink / raw) To: Sebastian Rasmussen; +Cc: linux-ext4 On Sat, Oct 14, 2017 at 08:44:53PM +0200, Sebastian Rasmussen wrote: > While reading the manpage for resize2fs I came a across a typo, > so I fixed it along with other typos in user-visible error > messages and docs. The next patch addresses non-user visible > typos, i.e. in code comments or docs aimed at developers. > > Finally, for completeness, I fixed any typos in changelogs and > release notes. Perhaps you prefer these old files to be kept > untouched, so that patch is separate. > > Since this is my first patch to e2fsprogs, so please advice > me if I've made a mistake or two somewhere. Thanks so much for your fixes! I've applied them into the e2fsprogs git repository. - Ted ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-10-16 3:23 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-10-14 18:44 [PATCH 0/3] e2fsprogs: Fixes typos in code and docs Sebastian Rasmussen 2017-10-14 18:44 ` [PATCH 1/3] Fix typos in error messages and documentation Sebastian Rasmussen 2017-10-14 22:14 ` Andreas Dilger 2017-10-14 18:44 ` [PATCH 2/3] Fix typos in code comments and developer docs Sebastian Rasmussen 2017-10-14 22:29 ` Andreas Dilger 2017-10-15 0:38 ` Sebastian Rasmussen 2017-10-16 3:23 ` [PATCH 0/3] e2fsprogs: Fixes typos in code and docs Theodore Ts'o
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).