Skip to content

Commit e875c3d

Browse files
committedFeb 25, 2025
Fix a bunch of spelling issues
Thanks Yaroslav Halchenko for the suggestion about using codespell.
1 parent 10bbbde commit e875c3d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed
 

‎bin/btrfs-search-metadata

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ presets = {
241241
),
242242
'devices': (get_devices, args_default, "Display devices"),
243243
'orphans': (get_orphans, args_default, "Orphan items from the Root Tree"),
244-
'dump': (dump, args_dump, "Dump aribitrary ranges of metadata items"),
244+
'dump': (dump, args_dump, "Dump arbitrary ranges of metadata items"),
245245
'block_group_contents': (
246246
get_block_group_contents,
247247
args_block_group_contents,

‎btrfs/ctree.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def _key_str_objectid(objectid_str, _type):
408408
if match is not None:
409409
return _qgroup_objectid(**match.groupdict())
410410
else:
411-
raise ValueError("Unparseable key objectid {} for qgroup type {}".format(
411+
raise ValueError("Unparsable key objectid {} for qgroup type {}".format(
412412
objectid_str, _key_type_str(_type)))
413413
# is it some UUID hex string?
414414
if objectid_str.startswith('0x'):
@@ -417,7 +417,7 @@ def _key_str_objectid(objectid_str, _type):
417417
except Exception:
418418
pass
419419
# otherwise, we don't know
420-
raise ValueError("Unparseable key objectid {}".format(objectid_str))
420+
raise ValueError("Unparsable key objectid {}".format(objectid_str))
421421

422422

423423
_key_type_str_map = {
@@ -510,7 +510,7 @@ def _key_str_offset(offset_str, _type):
510510
if match is not None:
511511
return _qgroup_objectid(**{k: int(v) for k, v in match.groupdict().items()})
512512
else:
513-
raise ValueError("Unparseable key offset {} for qgroup type {}".format(
513+
raise ValueError("Unparsable key offset {} for qgroup type {}".format(
514514
offset_str, _key_type_str(_type)))
515515
# is it some UUID hex string?
516516
if offset_str.startswith('0x'):
@@ -519,7 +519,7 @@ def _key_str_offset(offset_str, _type):
519519
except Exception:
520520
pass
521521
# otherwise, we don't know
522-
raise ValueError("Unparseable key offset {}".format(offset_str))
522+
raise ValueError("Unparsable key offset {}".format(offset_str))
523523

524524

525525
class ItemNotFoundError(IndexError):
@@ -578,7 +578,7 @@ class Key(object):
578578
'(-1 255 -1)'
579579
580580
The `-1` value in the string representation is just a convenience way to
581-
write the maximum allowed number. The actual value for a 64 bit numer is
581+
write the maximum allowed number. The actual value for a 64 bit number is
582582
still 18446744073709551615, and for 8 bit that's 255 of course.
583583
584584
For example, when setting up a minimum and maximum key for a metadata

‎btrfs/fs_usage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ def __init__(self, fs, data_metadata_ratio=None,
585585
# For convenience reasons, we provide a few more derived numbers...
586586
#
587587
# If the soft unallocatable amount of bytes is higher than the hard
588-
# amount, we can reclaim space by balancing the filesytsem.
588+
# amount, we can reclaim space by balancing the filesystem.
589589
self.unallocatable_reclaimable = \
590590
max(self.unallocatable_soft - self.unallocatable_hard, 0)
591591
for dev_usage in self.dev_usage.values():

‎btrfs/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# along with python-btrfs. If not, see <http://www.gnu.org/licenses/>.
1717

1818
"""
19-
This module contains miscellanious collection of things, like the
19+
This module contains miscellaneous collection of things, like the
2020
:func:`pretty_print` function which provides a quick readable textual dump of
2121
most of the object types in this library. Besides that, some functions to
2222
pretty print and parse size strings and some other stuff.
@@ -409,7 +409,7 @@ def embedded_text_for_str(text):
409409
:rtype: str
410410
411411
This function is not intended to be used for anything else than a
412-
convienient way of displaying filenames and xattr keys and values in the
412+
convenient way of displaying filenames and xattr keys and values in the
413413
pretty printer.
414414
415415
Example::

‎man/btrfs-balance-least-used.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ already existing block groups.
2424

2525
What btrfs balance effectively does is just taking the data and feeding it back
2626
to the allocator of the filesystem as new writes, blacklisting their current
27-
location. Implementing user space balance filters can result in a higly
27+
location. Implementing user space balance filters can result in a highly
2828
optimized workflow to reclaim physical space, or to minimize the amount of data
2929
that has to be rewritten to rebalance complex filesystems with multiple
3030
devices.

0 commit comments

Comments
 (0)
Please sign in to comment.