From 4977fa0c0e6b586fd71f0d1f1a312bb9b0a9a44d Mon Sep 17 00:00:00 2001 From: mikee47 Date: Fri, 10 Dec 2021 13:36:28 +0000 Subject: [PATCH] Fix spelling errors --- bd/lfs_filebd.c | 2 +- bd/lfs_rambd.c | 2 +- lfs.c | 4 ++-- lfs.h | 14 +++++++------- scripts/test.py | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/bd/lfs_filebd.c b/bd/lfs_filebd.c index 2d36a42..248a67f 100644 --- a/bd/lfs_filebd.c +++ b/bd/lfs_filebd.c @@ -80,7 +80,7 @@ int lfs_filebd_read(const struct lfs_config *cfg, lfs_block_t block, LFS_ASSERT(size % cfg->read_size == 0); LFS_ASSERT(block < cfg->block_count); - // zero for reproducability (in case file is truncated) + // zero for reproducibility (in case file is truncated) if (bd->cfg->erase_value != -1) { memset(buffer, bd->cfg->erase_value, size); } diff --git a/bd/lfs_rambd.c b/bd/lfs_rambd.c index 0a6b5cc..73fd5be 100644 --- a/bd/lfs_rambd.c +++ b/bd/lfs_rambd.c @@ -32,7 +32,7 @@ int lfs_rambd_createcfg(const struct lfs_config *cfg, } } - // zero for reproducability? + // zero for reproducibility? if (bd->cfg->erase_value != -1) { memset(bd->buffer, bd->cfg->erase_value, cfg->block_size * cfg->block_count); diff --git a/lfs.c b/lfs.c index d976389..019a9c3 100644 --- a/lfs.c +++ b/lfs.c @@ -1449,7 +1449,7 @@ static int lfs_dir_alloc(lfs_t *lfs, lfs_mdir_t *dir) { } } - // zero for reproducability in case initial block is unreadable + // zero for reproducibility in case initial block is unreadable dir->rev = 0; // rather than clobbering one of the blocks we just pretend @@ -4074,7 +4074,7 @@ static int lfs_fs_relocate(lfs_t *lfs, lfs_fs_prepmove(lfs, 0x3ff, NULL); } - // replace bad pair, either we clean up desync, or no desync occured + // replace bad pair, either we clean up desync, or no desync occurred lfs_pair_tole32(newpair); err = lfs_dir_commit(lfs, &parent, LFS_MKATTRS( {LFS_MKTAG_IF(moveid != 0x3ff, diff --git a/lfs.h b/lfs.h index ad49162..b2dbe76 100644 --- a/lfs.h +++ b/lfs.h @@ -159,34 +159,34 @@ struct lfs_config { // information to the block device operations void *context; - // Read a region in a block. Negative error codes are propogated + // Read a region in a block. Negative error codes are propagated // to the user. int (*read)(const struct lfs_config *c, lfs_block_t block, lfs_off_t off, void *buffer, lfs_size_t size); // Program a region in a block. The block must have previously - // been erased. Negative error codes are propogated to the user. + // been erased. Negative error codes are propagated to the user. // May return LFS_ERR_CORRUPT if the block should be considered bad. int (*prog)(const struct lfs_config *c, lfs_block_t block, lfs_off_t off, const void *buffer, lfs_size_t size); // Erase a block. A block must be erased before being programmed. // The state of an erased block is undefined. Negative error codes - // are propogated to the user. + // are propagated to the user. // May return LFS_ERR_CORRUPT if the block should be considered bad. int (*erase)(const struct lfs_config *c, lfs_block_t block); // Sync the state of the underlying block device. Negative error codes - // are propogated to the user. + // are propagated to the user. int (*sync)(const struct lfs_config *c); #ifdef LFS_THREADSAFE // Lock the underlying block device. Negative error codes - // are propogated to the user. + // are propagated to the user. int (*lock)(const struct lfs_config *c); // Unlock the underlying block device. Negative error codes - // are propogated to the user. + // are propagated to the user. int (*unlock)(const struct lfs_config *c); #endif @@ -485,7 +485,7 @@ int lfs_stat(lfs_t *lfs, const char *path, struct lfs_info *info); // Returns the size of the attribute, or a negative error code on failure. // Note, the returned size is the size of the attribute on disk, irrespective // of the size of the buffer. This can be used to dynamically allocate a buffer -// or check for existance. +// or check for existence. lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path, uint8_t type, void *buffer, lfs_size_t size); diff --git a/scripts/test.py b/scripts/test.py index 42a10f9..f8051f0 100755 --- a/scripts/test.py +++ b/scripts/test.py @@ -565,7 +565,7 @@ class TestSuite: path=self.path)) mk.write('\n') - # add truely global defines globally + # add truly global defines globally for k, v in sorted(self.defines.items()): mk.write('%s.test: override CFLAGS += -D%s=%r\n' % (self.path, k, v)) @@ -656,7 +656,7 @@ def main(**args): for path in glob.glob(testpath): suites.append(TestSuite(path, classes, defines, filter, **args)) - # sort for reproducability + # sort for reproducibility suites = sorted(suites) # generate permutations