littlefs/bd
Christopher Haster 027331b2f0 Adopted erase_size/erase_count config in test block-devices/runners
In separating the configuration of littlefs from the physical geometry
of the underlying device, we can no longer rely solely on lfs_config to
contain all of the information necessary for the simulated block devices
we use for testing.

This adds a new lfs_*bd_config struct for each of the block devices, and
new erase_size/erase_count fields. The erase_* name was chosen since
these reflect the (simulated) physical erase size and count of
erase-sized blocks, unlike the block_* variants which represent logical
block sizes used for littlefs's bookkeeping.

It may be worth adopting erase_size/erase_count in littlefs's config at
some point in the future, but at the moment doesn't seem necessary.

Changing the lfs_bd_config structs to be required is probably a good
idea anyways, as it moves us more towards separating the bds from
littlefs. Though we can't quite get rid of the lfs_config parameter
because of the block-device API in lfs_config. Eventually it would be
nice to get rid of it, but that would require API breakage.
2023-09-12 00:39:09 -05:00
..
lfs_emubd.c Adopted erase_size/erase_count config in test block-devices/runners 2023-09-12 00:39:09 -05:00
lfs_emubd.h Adopted erase_size/erase_count config in test block-devices/runners 2023-09-12 00:39:09 -05:00
lfs_filebd.c Adopted erase_size/erase_count config in test block-devices/runners 2023-09-12 00:39:09 -05:00
lfs_filebd.h Adopted erase_size/erase_count config in test block-devices/runners 2023-09-12 00:39:09 -05:00
lfs_rambd.c Adopted erase_size/erase_count config in test block-devices/runners 2023-09-12 00:39:09 -05:00
lfs_rambd.h Adopted erase_size/erase_count config in test block-devices/runners 2023-09-12 00:39:09 -05:00