Typo
s/propogated/propagated/
This commit is contained in:
committed by
Christopher Haster
parent
ead50807f1
commit
5bc682a0d4
@@ -159,34 +159,34 @@ struct lfs_config {
|
|||||||
// information to the block device operations
|
// information to the block device operations
|
||||||
void *context;
|
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.
|
// to the user.
|
||||||
int (*read)(const struct lfs_config *c, lfs_block_t block,
|
int (*read)(const struct lfs_config *c, lfs_block_t block,
|
||||||
lfs_off_t off, void *buffer, lfs_size_t size);
|
lfs_off_t off, void *buffer, lfs_size_t size);
|
||||||
|
|
||||||
// Program a region in a block. The block must have previously
|
// 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.
|
// May return LFS_ERR_CORRUPT if the block should be considered bad.
|
||||||
int (*prog)(const struct lfs_config *c, lfs_block_t block,
|
int (*prog)(const struct lfs_config *c, lfs_block_t block,
|
||||||
lfs_off_t off, const void *buffer, lfs_size_t size);
|
lfs_off_t off, const void *buffer, lfs_size_t size);
|
||||||
|
|
||||||
// Erase a block. A block must be erased before being programmed.
|
// Erase a block. A block must be erased before being programmed.
|
||||||
// The state of an erased block is undefined. Negative error codes
|
// 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.
|
// May return LFS_ERR_CORRUPT if the block should be considered bad.
|
||||||
int (*erase)(const struct lfs_config *c, lfs_block_t block);
|
int (*erase)(const struct lfs_config *c, lfs_block_t block);
|
||||||
|
|
||||||
// Sync the state of the underlying block device. Negative error codes
|
// 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);
|
int (*sync)(const struct lfs_config *c);
|
||||||
|
|
||||||
#ifdef LFS_THREADSAFE
|
#ifdef LFS_THREADSAFE
|
||||||
// Lock the underlying block device. Negative error codes
|
// 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);
|
int (*lock)(const struct lfs_config *c);
|
||||||
|
|
||||||
// Unlock the underlying block device. Negative error codes
|
// 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);
|
int (*unlock)(const struct lfs_config *c);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user