forked from Mirrors/btrfs-progs
btrfs-progs: lots of typo fixes (codespell)
Signed-off-by: Adam Borowski <kilobyte@angband.pl> Signed-off-by: David Sterba <dsterba@suse.com>
parent
ac405aa597
commit
3d379b1341
2
CHANGES
2
CHANGES
|
@ -10,7 +10,7 @@ btrfs-progs-5.4 (2019-12-03)
|
||||||
* mkfs: support new raid1c3 and raid1c4 block group profiles (kernel 5.5)
|
* mkfs: support new raid1c3 and raid1c4 block group profiles (kernel 5.5)
|
||||||
* check:
|
* check:
|
||||||
* --repair delays start with a warning, can be skipped using --force
|
* --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
|
repair
|
||||||
* receive: fix quiet option
|
* receive: fix quiet option
|
||||||
* image: speed up chunk loading
|
* image: speed up chunk loading
|
||||||
|
|
|
@ -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
|
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.
|
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,
|
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
|
both currently use a default level of 3. The value 0 is an alias for the
|
||||||
level.
|
default level.
|
||||||
+
|
+
|
||||||
Otherwise some simple heuristics are applied to detect an incompressible file.
|
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
|
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
|
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
|
swapfile. There are some limitations of the implementation in btrfs and linux
|
||||||
swap subystem:
|
swap subsystem:
|
||||||
|
|
||||||
* filesystem - must be only single device
|
* filesystem - must be only single device
|
||||||
* swapfile - the containing subvolume cannot be snapshotted
|
* swapfile - the containing subvolume cannot be snapshotted
|
||||||
|
|
|
@ -521,7 +521,7 @@ static int avoid_extents_overwrite(struct btrfs_fs_info *fs_info)
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(
|
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);
|
ret = exclude_metadata_blocks(fs_info);
|
||||||
out:
|
out:
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
@ -2570,7 +2570,7 @@ static int repair_inode_gen_lowmem(struct btrfs_root *root,
|
||||||
error("failed to commit transaction: %m");
|
error("failed to commit transaction: %m");
|
||||||
goto error;
|
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);
|
transid, key.objectid);
|
||||||
return ret;
|
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.
|
* time, so skip such repair and don't report them as error.
|
||||||
*/
|
*/
|
||||||
if (nbytes != extent_size && !is_orphan) {
|
if (nbytes != extent_size && !is_orphan) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ wget https://github.com/kdave/btrfs-devel/archive/misc-next.zip
|
||||||
unzip -qq misc-next.zip
|
unzip -qq misc-next.zip
|
||||||
cd btrfs-devel-misc-next/ && make x86_64_defconfig && make kvmconfig
|
cd btrfs-devel-misc-next/ && make x86_64_defconfig && make kvmconfig
|
||||||
|
|
||||||
# BTRFS specific entires
|
# BTRFS specific entries
|
||||||
cat <<EOF >> .config
|
cat <<EOF >> .config
|
||||||
CONFIG_BTRFS_FS=y
|
CONFIG_BTRFS_FS=y
|
||||||
CONFIG_BTRFS_FS_POSIX_ACL=y
|
CONFIG_BTRFS_FS_POSIX_ACL=y
|
||||||
|
|
|
@ -19,7 +19,7 @@ done
|
||||||
# mount the image file
|
# mount the image file
|
||||||
mount -o loop $IMG $DIR
|
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/
|
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
|
## Setup 9p mount
|
||||||
|
|
|
@ -134,7 +134,7 @@ static u64 count_unique_bytes(struct rb_root *root, struct shared_extent *n)
|
||||||
|
|
||||||
do {
|
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
|
* overlapping extent. Doing this will allow us to
|
||||||
* find all possible overlaps
|
* find all possible overlaps
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -64,7 +64,7 @@ struct format_ctx {
|
||||||
/* Nesting of groups like lists or maps (format: json) */
|
/* Nesting of groups like lists or maps (format: json) */
|
||||||
int depth;
|
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;
|
const struct rowspec *rowspec;
|
||||||
|
|
||||||
char jtype[JSON_NESTING_LIMIT];
|
char jtype[JSON_NESTING_LIMIT];
|
||||||
|
|
|
@ -949,7 +949,7 @@ again:
|
||||||
goto 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)
|
if (search_key->nr_items == 0)
|
||||||
/*
|
/*
|
||||||
* last tree_search returns an empty buf, use the devid of
|
* last tree_search returns an empty buf, use the devid of
|
||||||
|
|
|
@ -198,7 +198,7 @@ fi
|
||||||
HAVE_OWN_FIEMAP_EXTENT_SHARED_DEFINE=0
|
HAVE_OWN_FIEMAP_EXTENT_SHARED_DEFINE=0
|
||||||
AX_CHECK_DEFINE([linux/fiemap.h], [FIEMAP_EXTENT_SHARED], [],
|
AX_CHECK_DEFINE([linux/fiemap.h], [FIEMAP_EXTENT_SHARED], [],
|
||||||
[HAVE_OWN_FIEMAP_EXTENT_SHARED_DEFINE=1
|
[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
|
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])
|
AC_DEFINE([HAVE_OWN_FIEMAP_EXTENT_SHARED_DEFINE], [1], [We defined FIEMAP_EXTENT_SHARED])
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Defines and function declarations for users of the mkfs API, no internal
|
* Defines and function declarations for users of the mkfs API, no internal
|
||||||
* defintions.
|
* definitions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __BTRFS_CONVERT_COMMON_H__
|
#ifndef __BTRFS_CONVERT_COMMON_H__
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
* We can a map used space of old fs
|
* We can a map used space of old fs
|
||||||
*
|
*
|
||||||
* 1.2) Calculate data chunk layout - this is the hard part
|
* 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
|
* a. Large enough to be a chunk
|
||||||
* b. Doesn't intersect reserved ranges
|
* b. Doesn't intersect reserved ranges
|
||||||
* c. Covers all the remaining old fs used space
|
* c. Covers all the remaining old fs used space
|
||||||
|
|
|
@ -495,7 +495,7 @@ static int reiserfs_copy_dirent(reiserfs_filsys_t fs,
|
||||||
if (ret) {
|
if (ret) {
|
||||||
errno = -ret;
|
errno = -ret;
|
||||||
error(
|
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);
|
(int)len, name, deh_dirid, deh_objectid);
|
||||||
return ret;
|
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
|
/* 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)
|
if (deh_dirid == REISERFS_ROOT_PARENT_OBJECTID)
|
||||||
parent = objectid;
|
parent = objectid;
|
||||||
|
|
|
@ -210,7 +210,7 @@ static U32 XXH_read32(const void* memPtr)
|
||||||
#endif /* XXH_FORCE_DIRECT_MEMORY_ACCESS */
|
#endif /* XXH_FORCE_DIRECT_MEMORY_ACCESS */
|
||||||
|
|
||||||
|
|
||||||
/* === Endianess === */
|
/* === Endianness === */
|
||||||
typedef enum { XXH_bigEndian=0, XXH_littleEndian=1 } XXH_endianess;
|
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 */
|
/* XXH_CPU_LITTLE_ENDIAN can be defined externally, for example on the compiler command line */
|
||||||
|
|
|
@ -343,7 +343,7 @@ struct XXH64_state_s {
|
||||||
*
|
*
|
||||||
* - 128-bits output type : currently defined as a structure of two 64-bits fields.
|
* - 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.
|
* 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.
|
* However, at field level, they are identical on all platforms.
|
||||||
* The canonical representation solves the issue of identical byte-level representation across platforms,
|
* The canonical representation solves the issue of identical byte-level representation across platforms,
|
||||||
* which is necessary for serialization.
|
* which is necessary for serialization.
|
||||||
|
|
2
ctree.h
2
ctree.h
|
@ -571,7 +571,7 @@ struct btrfs_path {
|
||||||
struct extent_buffer *nodes[BTRFS_MAX_LEVEL];
|
struct extent_buffer *nodes[BTRFS_MAX_LEVEL];
|
||||||
int slots[BTRFS_MAX_LEVEL];
|
int slots[BTRFS_MAX_LEVEL];
|
||||||
#if 0
|
#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];
|
int locks[BTRFS_MAX_LEVEL];
|
||||||
#endif
|
#endif
|
||||||
signed char reada;
|
signed char reada;
|
||||||
|
|
|
@ -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.
|
* Find a block group which starts >= @key->objectid in extent tree.
|
||||||
*
|
*
|
||||||
* Return 0 for found
|
* Return 0 for found
|
||||||
* Retrun >0 for not found
|
* Return >0 for not found
|
||||||
* Return <0 for error
|
* Return <0 for error
|
||||||
*/
|
*/
|
||||||
static int find_first_block_group(struct btrfs_root *root,
|
static int find_first_block_group(struct btrfs_root *root,
|
||||||
|
|
|
@ -2455,7 +2455,7 @@ static int fixup_dev_extents(struct btrfs_trans_handle *trans)
|
||||||
|
|
||||||
dev = btrfs_find_device(fs_info, devid, NULL, NULL);
|
dev = btrfs_find_device(fs_info, devid, NULL, NULL);
|
||||||
if (!dev) {
|
if (!dev) {
|
||||||
error("faild to find devid %llu", devid);
|
error("failed to find devid %llu", devid);
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
# The way to reproduce the image:
|
# The way to reproduce the image:
|
||||||
# - Create a lot of regular file extents for one inode
|
# - Create a lot of regular file extents for one inode
|
||||||
# Using direct IO with small block size is the easiy method
|
# 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:
|
# Two locations are needed:
|
||||||
# * btrfs_unlink():
|
# * btrfs_unlink():
|
||||||
# To make the ORPHAN item reach disk asap
|
# To make the ORPHAN item reach disk asap
|
||||||
|
|
|
@ -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
|
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
|
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 :-)
|
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
|
"btrfs check" crashes due to a SIGFPE in count_csum_range(). The culprit is
|
||||||
|
|
|
@ -51,7 +51,7 @@ check_btrfstune() {
|
||||||
# test that having -m|-M on seed device is forbidden
|
# test that having -m|-M on seed device is forbidden
|
||||||
run_check_mkfs_test_dev
|
run_check_mkfs_test_dev
|
||||||
run_check $SUDO_HELPER "$TOP/btrfstune" -S 1 "$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"
|
$SUDO_HELPER "$TOP/btrfstune" -m "$TEST_DEV"
|
||||||
|
|
||||||
# test that using -U|-u on an fs with METADATA_UUID flag is forbidden
|
# test that using -U|-u on an fs with METADATA_UUID flag is forbidden
|
||||||
|
|
Loading…
Reference in New Issue