diff options
author | Christopher Haster <chaster@utexas.edu> | 2022-03-21 07:09:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 07:09:23 +0300 |
commit | 5801169348000ace6242c467add64dd02f3e131c (patch) | |
tree | cc1a9d10096da203f10f273409eb04db9d7dc2ac /lfs.h | |
parent | 2d6f4ead13f3ad66236a89da343ce79e5cc0b4d2 (diff) | |
parent | 4977fa0c0e6b586fd71f0d1f1a312bb9b0a9a44d (diff) |
Merge pull request #635 from mikee47/fix/spelling-errors
Fix spelling errors
Diffstat (limited to 'lfs.h')
-rw-r--r-- | lfs.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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); |