btrfs-progs: lots of typo fixes (codespell)

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: David Sterba <dsterba@suse.com>
Adam Borowski 2020-03-27 21:36:52 +01:00 committed by David Sterba
parent ac405aa597
commit 3d379b1341
20 changed files with 25 additions and 25 deletions

View File

@ -10,7 +10,7 @@ btrfs-progs-5.4 (2019-12-03)
* mkfs: support new raid1c3 and raid1c4 block group profiles (kernel 5.5)
* check:
* --repair delays start with a warning, can be skipped using --force
* enhanced detetion of inode types from partial data, more options for
* enhanced detection of inode types from partial data, more options for
repair
* receive: fix quiet option
* image: speed up chunk loading

View File

@ -136,8 +136,8 @@ Both 'zlib' and 'zstd' (since version 5.1) expose the compression level as a
tunable knob with higher levels trading speed and memory ('zstd') for higher
compression ratios. This can be set by appending a colon and the desired level.
Zlib accepts the range [1, 9] and zstd accepts [1, 15]. If no level is set,
both currently use a default level of 3. The value 0 is an alias for the defaul
level.
both currently use a default level of 3. The value 0 is an alias for the
default level.
+
Otherwise some simple heuristics are applied to detect an incompressible file.
If the first blocks written to a file are not compressible, the whole file is
@ -635,7 +635,7 @@ SWAPFILE SUPPORT
The swapfile is supported since kernel 5.0. Use `swapon`(8) to activate the
swapfile. There are some limitations of the implementation in btrfs and linux
swap subystem:
swap subsystem:
* filesystem - must be only single device
* swapfile - the containing subvolume cannot be snapshotted

View File

@ -521,7 +521,7 @@ static int avoid_extents_overwrite(struct btrfs_fs_info *fs_info)
}
printf(
"Try to exclude all metadata blcoks and extents, it may be slow\n");
"Try to exclude all metadata blocks and extents, it may be slow\n");
ret = exclude_metadata_blocks(fs_info);
out:
if (ret) {
@ -2570,7 +2570,7 @@ static int repair_inode_gen_lowmem(struct btrfs_root *root,
error("failed to commit transaction: %m");
goto error;
}
printf("reseting inode generation to %llu for ino %llu\n",
printf("resetting inode generation to %llu for ino %llu\n",
transid, key.objectid);
return ret;
@ -2815,7 +2815,7 @@ out:
}
/*
* For orhpan inode, updating nbytes/size is just a waste of
* For orphan inode, updating nbytes/size is just a waste of
* time, so skip such repair and don't report them as error.
*/
if (nbytes != extent_size && !is_orphan) {

View File

@ -12,7 +12,7 @@ wget https://github.com/kdave/btrfs-devel/archive/misc-next.zip
unzip -qq misc-next.zip
cd btrfs-devel-misc-next/ && make x86_64_defconfig && make kvmconfig
# BTRFS specific entires
# BTRFS specific entries
cat <<EOF >> .config
CONFIG_BTRFS_FS=y
CONFIG_BTRFS_FS_POSIX_ACL=y

View File

@ -19,7 +19,7 @@ done
# mount the image file
mount -o loop $IMG $DIR
# Install required pacakges
# Install required packages
debootstrap --arch=amd64 --include=git,autoconf,automake,gcc,make,pkg-config,e2fslibs-dev,libblkid-dev,zlib1g-dev,liblzo2-dev,asciidoc,xmlto,libzstd-dev,python3.5,python3.5-dev,python3-dev,python3-setuptools,python-setuptools,xz-utils,acl,attr stretch $DIR http://ftp.de.debian.org/debian/
## Setup 9p mount

View File

@ -134,7 +134,7 @@ static u64 count_unique_bytes(struct rb_root *root, struct shared_extent *n)
do {
/*
* Expand our search window based on the lastest
* Expand our search window based on the latest
* overlapping extent. Doing this will allow us to
* find all possible overlaps
*/

View File

@ -64,7 +64,7 @@ struct format_ctx {
/* Nesting of groups like lists or maps (format: json) */
int depth;
/* Array of named output fileds as defined by the command */
/* Array of named output fields as defined by the command */
const struct rowspec *rowspec;
char jtype[JSON_NESTING_LIMIT];

View File

@ -949,7 +949,7 @@ again:
goto again;
}
/* get the lastest max_id to stay consistent with the num_devices */
/* Get the latest max_id to stay consistent with the num_devices */
if (search_key->nr_items == 0)
/*
* last tree_search returns an empty buf, use the devid of

View File

@ -198,7 +198,7 @@ fi
HAVE_OWN_FIEMAP_EXTENT_SHARED_DEFINE=0
AX_CHECK_DEFINE([linux/fiemap.h], [FIEMAP_EXTENT_SHARED], [],
[HAVE_OWN_FIEMAP_EXTENT_SHARED_DEFINE=1
AC_MSG_WARN([no definition of FIEMAP_EXTENT_SHARED found, probably old kernel, will use own defintion, 'btrfs fi du' might report wrong numbers])])
AC_MSG_WARN([no definition of FIEMAP_EXTENT_SHARED found, probably old kernel, will use own definition, 'btrfs fi du' might report wrong numbers])])
if test "x$HAVE_OWN_FIEMAP_EXTENT_SHARED_DEFINE" == "x1"; then
AC_DEFINE([HAVE_OWN_FIEMAP_EXTENT_SHARED_DEFINE], [1], [We defined FIEMAP_EXTENT_SHARED])

View File

@ -16,7 +16,7 @@
/*
* Defines and function declarations for users of the mkfs API, no internal
* defintions.
* definitions.
*/
#ifndef __BTRFS_CONVERT_COMMON_H__

View File

@ -52,7 +52,7 @@
* We can a map used space of old fs
*
* 1.2) Calculate data chunk layout - this is the hard part
* New data chunks must meet 3 conditions using result fomr 1.1
* New data chunks must meet 3 conditions using result from 1.1
* a. Large enough to be a chunk
* b. Doesn't intersect reserved ranges
* c. Covers all the remaining old fs used space

View File

@ -495,7 +495,7 @@ static int reiserfs_copy_dirent(reiserfs_filsys_t fs,
if (ret) {
errno = -ret;
error(
"an error occured while converting \"%.*s\", reiserfs key [%u %u]: %m",
"an error occurred while converting \"%.*s\", reiserfs key [%u %u]: %m",
(int)len, name, deh_dirid, deh_objectid);
return ret;
}
@ -564,7 +564,7 @@ static int reiserfs_copy_meta(reiserfs_filsys_t fs, struct btrfs_root *root,
};
/* The root directory's dirid in reiserfs points to an object
* that doens't exist. In btrfs it's self-referential.
* that doesn't exist. In btrfs it's self-referential.
*/
if (deh_dirid == REISERFS_ROOT_PARENT_OBJECTID)
parent = objectid;

View File

@ -210,7 +210,7 @@ static U32 XXH_read32(const void* memPtr)
#endif /* XXH_FORCE_DIRECT_MEMORY_ACCESS */
/* === Endianess === */
/* === Endianness === */
typedef enum { XXH_bigEndian=0, XXH_littleEndian=1 } XXH_endianess;
/* XXH_CPU_LITTLE_ENDIAN can be defined externally, for example on the compiler command line */

View File

@ -343,7 +343,7 @@ struct XXH64_state_s {
*
* - 128-bits output type : currently defined as a structure of two 64-bits fields.
* That's because 128-bit values do not exist in C standard.
* Note that it means that, at byte level, result is not identical depending on endianess.
* Note that it means that, at byte level, result is not identical depending on endianness.
* However, at field level, they are identical on all platforms.
* The canonical representation solves the issue of identical byte-level representation across platforms,
* which is necessary for serialization.

View File

@ -571,7 +571,7 @@ struct btrfs_path {
struct extent_buffer *nodes[BTRFS_MAX_LEVEL];
int slots[BTRFS_MAX_LEVEL];
#if 0
/* The kernel locking sheme is not done in userspace. */
/* The kernel locking scheme is not done in userspace. */
int locks[BTRFS_MAX_LEVEL];
#endif
signed char reada;

View File

@ -2593,7 +2593,7 @@ int btrfs_free_block_groups(struct btrfs_fs_info *info)
* Find a block group which starts >= @key->objectid in extent tree.
*
* Return 0 for found
* Retrun >0 for not found
* Return >0 for not found
* Return <0 for error
*/
static int find_first_block_group(struct btrfs_root *root,

View File

@ -2455,7 +2455,7 @@ static int fixup_dev_extents(struct btrfs_trans_handle *trans)
dev = btrfs_find_device(fs_info, devid, NULL, NULL);
if (!dev) {
error("faild to find devid %llu", devid);
error("failed to find devid %llu", devid);
return -ENODEV;
}

View File

@ -10,7 +10,7 @@
# The way to reproduce the image:
# - Create a lot of regular file extents for one inode
# Using direct IO with small block size is the easiy method
# - Modify kernel to commit transaction more aggresively
# - Modify kernel to commit transaction more aggressively
# Two locations are needed:
# * btrfs_unlink():
# To make the ORPHAN item reach disk asap

View File

@ -3,7 +3,7 @@ URL: https://bugzilla.kernel.org/show_bug.cgi?id=96971
I've identified some problems in the btrfs code and attached a btrfs-image
which causes the userland tools to crash and the kernel to immediately freeze
once the filesystem get's mounted and one of the files is accessed. Putting
once the filesystem gets mounted and one of the files is accessed. Putting
the image onto a usb-drive gives you a freeze-on-a-stick :-)
"btrfs check" crashes due to a SIGFPE in count_csum_range(). The culprit is

View File

@ -51,7 +51,7 @@ check_btrfstune() {
# test that having -m|-M on seed device is forbidden
run_check_mkfs_test_dev
run_check $SUDO_HELPER "$TOP/btrfstune" -S 1 "$TEST_DEV"
run_mustfail "Succeded changing fsid on a seed device" \
run_mustfail "Succeeded changing fsid on a seed device" \
$SUDO_HELPER "$TOP/btrfstune" -m "$TEST_DEV"
# test that using -U|-u on an fs with METADATA_UUID flag is forbidden