@@ -159,34 +159,34 @@ struct lfs2_config {
159
159
// information to the block device operations
160
160
void * context ;
161
161
162
- // Read a region in a block. Negative error codes are propogated
162
+ // Read a region in a block. Negative error codes are propagated
163
163
// to the user.
164
164
int (* read )(const struct lfs2_config * c , lfs2_block_t block ,
165
165
lfs2_off_t off , void * buffer , lfs2_size_t size );
166
166
167
167
// Program a region in a block. The block must have previously
168
- // been erased. Negative error codes are propogated to the user.
168
+ // been erased. Negative error codes are propagated to the user.
169
169
// May return LFS2_ERR_CORRUPT if the block should be considered bad.
170
170
int (* prog )(const struct lfs2_config * c , lfs2_block_t block ,
171
171
lfs2_off_t off , const void * buffer , lfs2_size_t size );
172
172
173
173
// Erase a block. A block must be erased before being programmed.
174
174
// The state of an erased block is undefined. Negative error codes
175
- // are propogated to the user.
175
+ // are propagated to the user.
176
176
// May return LFS2_ERR_CORRUPT if the block should be considered bad.
177
177
int (* erase )(const struct lfs2_config * c , lfs2_block_t block );
178
178
179
179
// Sync the state of the underlying block device. Negative error codes
180
- // are propogated to the user.
180
+ // are propagated to the user.
181
181
int (* sync )(const struct lfs2_config * c );
182
182
183
183
#ifdef LFS2_THREADSAFE
184
184
// Lock the underlying block device. Negative error codes
185
- // are propogated to the user.
185
+ // are propagated to the user.
186
186
int (* lock )(const struct lfs2_config * c );
187
187
188
188
// Unlock the underlying block device. Negative error codes
189
- // are propogated to the user.
189
+ // are propagated to the user.
190
190
int (* unlock )(const struct lfs2_config * c );
191
191
#endif
192
192
@@ -479,7 +479,7 @@ int lfs2_stat(lfs2_t *lfs2, const char *path, struct lfs2_info *info);
479
479
// Returns the size of the attribute, or a negative error code on failure.
480
480
// Note, the returned size is the size of the attribute on disk, irrespective
481
481
// of the size of the buffer. This can be used to dynamically allocate a buffer
482
- // or check for existance .
482
+ // or check for existence .
483
483
lfs2_ssize_t lfs2_getattr (lfs2_t * lfs2 , const char * path ,
484
484
uint8_t type , void * buffer , lfs2_size_t size );
485
485
0 commit comments