@@ -159,34 +159,34 @@ struct lfs2_config {
159159 // information to the block device operations
160160 void * context ;
161161
162- // Read a region in a block. Negative error codes are propagated
162+ // Read a region in a block. Negative error codes are propogated
163163 // to the user.
164164 int (* read )(const struct lfs2_config * c , lfs2_block_t block ,
165165 lfs2_off_t off , void * buffer , lfs2_size_t size );
166166
167167 // Program a region in a block. The block must have previously
168- // been erased. Negative error codes are propagated to the user.
168+ // been erased. Negative error codes are propogated to the user.
169169 // May return LFS2_ERR_CORRUPT if the block should be considered bad.
170170 int (* prog )(const struct lfs2_config * c , lfs2_block_t block ,
171171 lfs2_off_t off , const void * buffer , lfs2_size_t size );
172172
173173 // Erase a block. A block must be erased before being programmed.
174174 // The state of an erased block is undefined. Negative error codes
175- // are propagated to the user.
175+ // are propogated to the user.
176176 // May return LFS2_ERR_CORRUPT if the block should be considered bad.
177177 int (* erase )(const struct lfs2_config * c , lfs2_block_t block );
178178
179179 // Sync the state of the underlying block device. Negative error codes
180- // are propagated to the user.
180+ // are propogated to the user.
181181 int (* sync )(const struct lfs2_config * c );
182182
183183#ifdef LFS2_THREADSAFE
184184 // Lock the underlying block device. Negative error codes
185- // are propagated to the user.
185+ // are propogated to the user.
186186 int (* lock )(const struct lfs2_config * c );
187187
188188 // Unlock the underlying block device. Negative error codes
189- // are propagated to the user.
189+ // are propogated to the user.
190190 int (* unlock )(const struct lfs2_config * c );
191191#endif
192192
@@ -479,7 +479,7 @@ int lfs2_stat(lfs2_t *lfs2, const char *path, struct lfs2_info *info);
479479// Returns the size of the attribute, or a negative error code on failure.
480480// Note, the returned size is the size of the attribute on disk, irrespective
481481// of the size of the buffer. This can be used to dynamically allocate a buffer
482- // or check for existence .
482+ // or check for existance .
483483lfs2_ssize_t lfs2_getattr (lfs2_t * lfs2 , const char * path ,
484484 uint8_t type , void * buffer , lfs2_size_t size );
485485
0 commit comments