Fix typos in code comments and developer docs

Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
This commit is contained in:
Sebastian Rasmussen 2017-10-08 13:30:08 +02:00 committed by Theodore Ts'o
parent ce20096fc6
commit 055866d84d
81 changed files with 125 additions and 125 deletions

View File

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

View File

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

4
TODO
View File

@ -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!).

4
aclocal.m4 vendored
View File

@ -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
# --------------------------------------------------------------

View File

@ -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
@ -975,7 +975,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>])

View File

@ -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.
*

2
debian/rules vendored
View File

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

View File

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

View File

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

View File

@ -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.
*

View File

@ -430,7 +430,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,

View File

@ -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 = "";

View File

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

View File

@ -29,7 +29,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.)
*
@ -1581,7 +1581,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))
@ -3948,7 +3948,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.

View File

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

View File

@ -1602,7 +1602,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)
{
@ -1672,7 +1672,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)
{

View File

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

View File

@ -302,7 +302,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))

View File

@ -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 },
@ -1311,7 +1311,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 },
@ -1326,7 +1326,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 },

View File

@ -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 */
@ -783,7 +783,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 */
@ -792,7 +792,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 */
@ -1082,7 +1082,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
@ -1196,7 +1196,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 */

View File

@ -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}
* |
* _______|______________
* | |

View File

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

View File

@ -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"),

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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);

View File

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

View File

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

View File

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

View File

@ -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);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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
*

View File

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

View File

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

View File

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

View File

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

View File

@ -552,7 +552,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;

View File

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

View File

@ -326,7 +326,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.
*
@ -409,7 +409,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()

View File

@ -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 */
};

View File

@ -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.
*

View File

@ -321,7 +321,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);

View File

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

View File

@ -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') ||

View File

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

View File

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

View File

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

View File

@ -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 +

View File

@ -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/

View File

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

View File

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

View File

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

View File

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

View File

@ -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.
//

View File

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

View File

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

View File

@ -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++;

View File

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

View File

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

View File

@ -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.
*

View File

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

View File

@ -34,7 +34,7 @@
#define EXIT_LIBRARY 128
/*
* Internal structure for mount tabel entries.
* Internal structure for mount table entries.
*/
struct fs_info {

View File

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

View File

@ -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);

View File

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

View File

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

View File

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

View File

@ -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))) {
@ -2783,7 +2783,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)
{
@ -2876,7 +2876,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;

View File

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

View File

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

View File

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

View File

@ -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.
#

View File

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

View File

@ -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, "../"))) {