From 16a7cbca91a755a6f7b3376d16ba91ab6505becd Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 16 Jul 2024 21:20:13 -1000 Subject: [PATCH] btrfs-progs: run codespell throughout fixing typos automagically Spell checking can now run in automated mode. === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ Author: Yaroslav Halchenko Signed-off-by: David Sterba --- CHANGES | 2 +- Documentation/Custom-ioctls.rst | 2 +- Documentation/DocConventions.rst | 2 +- Documentation/Feature-by-version.rst | 2 +- Documentation/Kernel-by-version.rst | 32 ++++++++++++++-------------- Documentation/btrfs-ioctl.rst | 2 +- Documentation/man-preview.sh | 2 +- README.md | 2 +- ci/images/images-base-update | 2 +- cmds/filesystem.c | 2 +- cmds/inspect.c | 4 ++-- common/array.c | 2 +- common/send-stream.c | 2 +- common/sort-utils.c | 2 +- common/sort-utils.h | 2 +- crypto/crc32c-pcl-intel-asm_64.S | 2 +- inject-error | 2 +- kernel-shared/volumes.h | 2 +- mkfs/rootdir.c | 2 +- tests/array-test.c | 4 ++-- tests/build-tests.sh | 2 +- tests/check-setup.sh | 2 +- tests/common | 2 +- 23 files changed, 40 insertions(+), 40 deletions(-) diff --git a/CHANGES b/CHANGES index 4c04fc87..f1db9c01 100644 --- a/CHANGES +++ b/CHANGES @@ -1689,7 +1689,7 @@ btrfs-progs-4.4 (2016-01-18) Bugfixes: * chunk recovery: fix floating point exception - * chunk recovery: endianity bugfix during rebuild + * chunk recovery: endianness bugfix during rebuild * mkfs with 64K pages and nodesize reported superblock checksum mismatch * check: properly reset nlink of multi-linked file diff --git a/Documentation/Custom-ioctls.rst b/Documentation/Custom-ioctls.rst index 46d93709..912bfb40 100644 --- a/Documentation/Custom-ioctls.rst +++ b/Documentation/Custom-ioctls.rst @@ -20,5 +20,5 @@ a command if available: - query/set a subset of features on a mounted filesystem -Programming documentaion of the ioctls is in the manual page +Programming documentation of the ioctls is in the manual page :doc:`btrfs-ioctl`. diff --git a/Documentation/DocConventions.rst b/Documentation/DocConventions.rst index df685b46..3483d93b 100644 --- a/Documentation/DocConventions.rst +++ b/Documentation/DocConventions.rst @@ -18,7 +18,7 @@ Manual pages structure: - subcommands are in alphabetical order - long command output or shell examples: verbatim output - - use ``..code-block::`` directive with ``bash`` or ``plain`` syntax hilighting + - use ``..code-block::`` directive with ``bash`` or ``plain`` syntax highlighting Quotes, reference, element formatting: diff --git a/Documentation/Feature-by-version.rst b/Documentation/Feature-by-version.rst index ca28838c..0b9f1807 100644 --- a/Documentation/Feature-by-version.rst +++ b/Documentation/Feature-by-version.rst @@ -331,7 +331,7 @@ features see :doc:`Status` page. Improved implementation of free space cache (aka v2), using b-trees. .. note:: - Default since btrfs-progs 5.15, Kernel 4.9 fixes endianity bugs on + Default since btrfs-progs 5.15, Kernel 4.9 fixes endianness bugs on big-endian machines, x86* is ok 4.5 - balance filter updates diff --git a/Documentation/Kernel-by-version.rst b/Documentation/Kernel-by-version.rst index d04a6ce9..976b3ed9 100644 --- a/Documentation/Kernel-by-version.rst +++ b/Documentation/Kernel-by-version.rst @@ -577,7 +577,7 @@ Pull requests: `v5.0-rc3 `__, `v5.0-rc5 `__ -Features, hilights: +Features, highlights: - swapfile support (with some limitations) - metadata uuid - new feature that allows fast uuid change without rewriting all metadata blocks (backward incompatible) @@ -609,7 +609,7 @@ Pull requests: `v5.1-rc5 `__, `v5.1-rc7 `__ -New features, hilights: +New features, highlights: - zstd compression levels can be set as mount options - new ioctl to unregister scanned devices @@ -634,7 +634,7 @@ Pull requests: `v5.2-rc5 `__, `v5.2-rc6 `__ -User visible changes, hilights: +User visible changes, highlights: - better read time and write checks to catch errors early and before writing data to disk - qgroups + metadata relocation: last speed up patch in the series there should @@ -672,7 +672,7 @@ Pull requests: `v5.3-rc5 `__, `v5.3 `__ -New features, hilights: +New features, highlights: - chunks that have been trimmed and unchanged since last mount are tracked and skipped on repeated trims - use hw assisted crc32c on more arches @@ -762,7 +762,7 @@ Highlights: - async discard - "mount -o discard=async" to enable it - - freed extents are not discarded immediatelly, but grouped together and + - freed extents are not discarded immediately, but grouped together and trimmed later, with IO rate limiting - the actual discard IO requests have been moved out of transaction commit to a worker thread, improving commit latency @@ -780,7 +780,7 @@ Core changes: that was confusing - device closing does not need to allocate memory anymore - snapshot aware code got removed, disabled for years due to performance - problems, reimplmentation will allow to select wheter defrag breaks or does + problems, reimplementation will allow to select whether defrag breaks or does not break COW on shared extents - tree-checker: @@ -805,14 +805,14 @@ Pull requests: `v5.7-rc4 `__, `v5.7-rc4 `__ -Hilights: +Highlights: - v2 of ioctl to delete subvolumes, allowing to delete by id and more future extensions - removal of obsolete ioctl flag BTRFS_SUBVOL_CREATE_ASYNC - more responsive balance cancel - speedup of extent back reference resolution - reflink/clone_range works on inline extents -- lots of othe core changes, see the [https://git.kernel.org/linus/15c981d16d70e8a5be297fa4af07a64ab7e080ed pull request] +- lots of other core changes, see the [https://git.kernel.org/linus/15c981d16d70e8a5be297fa4af07a64ab7e080ed pull request] 5.8 (Aug 2020) ^^^^^^^^^^^^^^ @@ -825,7 +825,7 @@ Pull requests: `v5.8-rc5 `__, `v5.8-rc7 `__ -Hilights: +Highlights: - speedup dead root detection during orphan cleanup - send will emit file capabilities after chown @@ -850,7 +850,7 @@ Pull requests: `v5.9-rc7 `__, `v5.9-rc8 `__ -Hilights: +Highlights: - add mount option ''rescue'' to unify options for various recovery tasks on a mounted filesystems - mount option ''inode_cache'' is deprecated and will be removed in 5.11 @@ -870,7 +870,7 @@ Pull requests: `v5.10-rc4 `__, `v5.10-rc6 `__ -Hilights: +Highlights: - performance improvements in fsync (dbench workload: higher throughput, lower latency) - sysfs exports current exclusive operataion (balance, resize, device add/del/...) @@ -999,7 +999,7 @@ Pull requests: `v5.14-rc7 `__, `v5.14 `__ -Hilights: +Highlights: - new sysfs knob to limit scrub IO bandwidth per device - device stats are also available in /sys/fs/btrfs/FSID/devinfo/DEVID/error_stats @@ -1195,7 +1195,7 @@ Core, fixes: - prevent deleting subvolume with active swapfile - remove device count in superblock and its item in one transaction so - they cant't get out of sync + they can't get out of sync - for subpage, force the free space v2 mount to avoid a warning and make it easy to switch a filesystem on different page size systems - export sysfs status of exclusive operation 'balance paused', so the @@ -1390,7 +1390,7 @@ Fixes: Fixes: - device delete hang at the end of the operation -- free space tree bitmap endianity fixed on big-endian machines +- free space tree bitmap endianness fixed on big-endian machines - parallel incremental send and balance issue fixed - cloning ioctl can be interrupted by a fatal signal - other stability fixes or cleanups @@ -1398,7 +1398,7 @@ Fixes: 4.10 (Feb 2017) ^^^^^^^^^^^^^^^ -- balance: human readable block group descripion in the log +- balance: human readable block group description in the log - balance: fix storing of stripes_min, stripes_max filters to the on-disk item - qgroup: fix accounting bug during concurrent balance run - better worker thread resource limit checks @@ -1555,7 +1555,7 @@ Internal changes: 4.19 (Oct 2018) ^^^^^^^^^^^^^^^ -Hilights, no big changes in this releaase: +Highlights, no big changes in this release: - allow defrag on opened read-only files that have rw permissions - tree checker improvements, reported by fuzzing diff --git a/Documentation/btrfs-ioctl.rst b/Documentation/btrfs-ioctl.rst index 32263c09..2d171345 100644 --- a/Documentation/btrfs-ioctl.rst +++ b/Documentation/btrfs-ioctl.rst @@ -728,7 +728,7 @@ BTRFS_IOC_SUBVOL_CREATE_V2 - ignored * - args.flags - flags to set on the subvolume, ``BTRFS_SUBVOL_RDONLY`` for readonly, - ``BTRFS_SUBVOL_QGROUP_INHERIT`` if the qgroup related fileds should be + ``BTRFS_SUBVOL_QGROUP_INHERIT`` if the qgroup related fields should be processed * - args.size - number of entries in ``args.qgroup_inherit`` diff --git a/Documentation/man-preview.sh b/Documentation/man-preview.sh index 6eb8ec36..ce74b7f9 100755 --- a/Documentation/man-preview.sh +++ b/Documentation/man-preview.sh @@ -1,6 +1,6 @@ #!/bin/sh # Generate manual page preview as rendered to a terminal, without colors or -# text attributes, encapsualted html, usable for CI summary +# text attributes, encapsulated html, usable for CI summary if ! [ -f "$1" ]; then exit 0 diff --git a/README.md b/README.md index 5195a804..8d03acb7 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,7 @@ some architectures. Optionally it's possible to use [Botan](https://botan.randombit.net) or [OpenSSL](https://www.openssl.org) implementations. -The builtin implemtations uses the following sources: +The builtin implementations uses the following sources: [CRC32C](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git), [XXHASH](https://github.com/Cyan4973/xxHash), [SHA256](https://tools.ietf.org/html/rfc4634), diff --git a/ci/images/images-base-update b/ci/images/images-base-update index fc896c07..ceba604d 100755 --- a/ci/images/images-base-update +++ b/ci/images/images-base-update @@ -1,5 +1,5 @@ #!/bin/sh -# Update all base images from Dockefile +# Update all base images from Dockerfile # Run before: images-build-all for dir in ci-*; do diff --git a/cmds/filesystem.c b/cmds/filesystem.c index 6c1c16b9..8e2697de 100644 --- a/cmds/filesystem.c +++ b/cmds/filesystem.c @@ -1331,7 +1331,7 @@ static int check_resize_args(const char *amount, const char *path, u64 *devid_re goto out; } else if (!devstr && devid == 1 && dev_idx < 0) { /* - * No device specified, assuming implicit 1 but it doess not + * No device specified, assuming implicit 1 but it does not * exist. Use minimum device as fallback. */ warning("no devid specified means devid 1 which does not exist, using\n" diff --git a/cmds/inspect.c b/cmds/inspect.c index 0abe92b8..ce66b1cb 100644 --- a/cmds/inspect.c +++ b/cmds/inspect.c @@ -839,7 +839,7 @@ static int print_list_chunks(struct list_chunks_ctx *ctx, const char *sortmode, .id = CHUNK_SORT_USAGE }, { .name = "length", .comp = (sort_cmp_t)cmp_cse_length, - .desc = "sort by lentgh", + .desc = "sort by length", .id = CHUNK_SORT_LENGTH }, SORTDEF_END @@ -876,7 +876,7 @@ static int print_list_chunks(struct list_chunks_ctx *ctx, const char *sortmode, ctx->stats[i].pnumber = number++; } - /* Skip additonal sort if nothing defined by user. */ + /* Skip additional sort if nothing defined by user. */ if (comp.count > 0) qsort_r(ctx->stats, ctx->length, sizeof(ctx->stats[0]), (sort_r_cmp_t)compare_cmp_multi, &comp); diff --git a/common/array.c b/common/array.c index c1c4417e..9129d339 100644 --- a/common/array.c +++ b/common/array.c @@ -80,7 +80,7 @@ void array_use_capacity(struct array *arr) arr->length = arr->capacity; } -/* Append a new element (increas length), extend the array if needed. */ +/* Append a new element (increase length), extend the array if needed. */ int array_append(struct array *arr, void *element) { if (arr->length == arr->capacity) { diff --git a/common/send-stream.c b/common/send-stream.c index 57309d4e..77b0b55f 100644 --- a/common/send-stream.c +++ b/common/send-stream.c @@ -131,7 +131,7 @@ static int read_cmd(struct btrfs_send_stream *sctx) goto out; } - /* The read_buf does not guarantee any aligmnet for any structures. */ + /* The read_buf does not guarantee any alignment for any structures. */ cmd_hdr = (struct btrfs_cmd_header *)sctx->read_buf; cmd_len = get_unaligned_le32(&cmd_hdr->len); cmd = get_unaligned_le16(&cmd_hdr->cmd); diff --git a/common/sort-utils.c b/common/sort-utils.c index bae2cd16..39c5d252 100644 --- a/common/sort-utils.c +++ b/common/sort-utils.c @@ -93,7 +93,7 @@ int compare_add_sort_id(struct compare *comp, int id) * * Key lookup is case insensitive. * - * Retrun: id from sortdef if a matching + * Return: id from sortdef if a matching * -1 on error * -2 end of buffer */ diff --git a/common/sort-utils.h b/common/sort-utils.h index 9b3f180a..09be7b7d 100644 --- a/common/sort-utils.h +++ b/common/sort-utils.h @@ -44,7 +44,7 @@ void test() { struct entry entries[SIZE]; // Comparator structure struct compare comp = { 0 }; - // Keys, item comparators, help text defitions + // Keys, item comparators, help text definitions struct sortdef sortit[] = { { .name = "id", .comp = (sort_cmp_t)cmp_entry_id, .desc = "sort by id" }, diff --git a/crypto/crc32c-pcl-intel-asm_64.S b/crypto/crc32c-pcl-intel-asm_64.S index 5fab0e09..f823d4d8 100644 --- a/crypto/crc32c-pcl-intel-asm_64.S +++ b/crypto/crc32c-pcl-intel-asm_64.S @@ -191,7 +191,7 @@ crc_pcl: xor crc1,crc1 xor crc2,crc2 - # Fall thruogh into top of crc array (crc_128) + # Fall through into top of crc array (crc_128) ################################################################ ## 3) CRC Array: diff --git a/inject-error b/inject-error index 716b53b1..5d32e47a 100755 --- a/inject-error +++ b/inject-error @@ -32,7 +32,7 @@ for l in ch_lines: if not c in found: found[c] = fn + ":" + line else: - print(f"ERROR: cookie {c} in {fn}:{line} not uniqe, please fix it first") + print(f"ERROR: cookie {c} in {fn}:{line} not unique, please fix it first") if len(sys.argv) == 1: cookie = do_new_cookie() diff --git a/kernel-shared/volumes.h b/kernel-shared/volumes.h index 96d2287d..74fccd14 100644 --- a/kernel-shared/volumes.h +++ b/kernel-shared/volumes.h @@ -111,7 +111,7 @@ struct btrfs_fs_devices { bool changing_fsid; bool active_metadata_uuid; - /* Super block data may be temporarily inconsistent (e.g. a differnt fsid). */ + /* Super block data may be temporarily inconsistent (e.g. a different fsid). */ bool inconsistent_super; }; diff --git a/mkfs/rootdir.c b/mkfs/rootdir.c index 617a7efd..2b39f6bb 100644 --- a/mkfs/rootdir.c +++ b/mkfs/rootdir.c @@ -443,7 +443,7 @@ static int copy_rootdir_inode(struct btrfs_trans_handle *trans, ret = stat(dir_name, &st); if (ret < 0) { ret = -errno; - error("stat failed for direcotry %s: %m", dir_name); + error("stat failed for directory %s: %m", dir_name); return ret; } diff --git a/tests/array-test.c b/tests/array-test.c index ad861d82..dc1b68a7 100644 --- a/tests/array-test.c +++ b/tests/array-test.c @@ -25,7 +25,7 @@ static void test_simple_create() int i; array_init(&arr, 0); - printf("Create array with default intial capacity=%u\n", arr.capacity); + printf("Create array with default initial capacity=%u\n", arr.capacity); array_append(&arr, (void *)0x1); array_append(&arr, (void *)0x2); array_append(&arr, (void *)0x3); @@ -41,7 +41,7 @@ static void test_simple_alloc_elems() const int count = 1000000; array_init(&arr, 0); - printf("Create array with default intial capacity=%u\n", arr.capacity); + printf("Create array with default initial capacity=%u\n", arr.capacity); for (i = 0; i < count; i++) { char *tmp; int ret; diff --git a/tests/build-tests.sh b/tests/build-tests.sh index ed2f3f16..a23d92a2 100755 --- a/tests/build-tests.sh +++ b/tests/build-tests.sh @@ -7,7 +7,7 @@ # - various configure options # # Arguments: -# - (first arugment) --ccache - enable ccache for build which can speed up +# - (first argument) --ccache - enable ccache for build which can speed up # rebuilding same files if the options do not affect them, the ccache will # be created in the toplevel git directory # - anything else will be passed to 'make', eg. define CC, D, V diff --git a/tests/check-setup.sh b/tests/check-setup.sh index 15890cf3..fb84b72c 100755 --- a/tests/check-setup.sh +++ b/tests/check-setup.sh @@ -4,7 +4,7 @@ for dir in *-tests; do missing= - echo "Checking prerequisities for: $dir" + echo "Checking prerequisites for: $dir" for prog in $(find "$dir" -name 'test.sh' -exec grep check_global_prereq '{}' \; | sort -u); do if [ "$prog" = check_global_prereq ]; then continue diff --git a/tests/common b/tests/common index e996b35a..30857f15 100644 --- a/tests/common +++ b/tests/common @@ -431,7 +431,7 @@ check_global_prereq() { type -p "$1" &> /dev/null if [ $? -ne 0 ]; then - _fail "Failed system wide prerequisities: $1"; + _fail "Failed system wide prerequisites: $1"; fi }