Commit Graph

6 Commits (7eaf61c04790eea930c6105175528f5353c3720e)

Author SHA1 Message Date
Christopher Haster 9f8d0d6ae8 Merge commit '0f4e334388e0e05554a78d14d0a5ef73f02209b2' 2017-11-16 18:23:51 -06:00
Christopher Haster 785b0b4bc4 Fixed issue with aggressively rounding down lookahead configuration
The littlefs allows buffers to be passed statically in the case
that a system does not have a heap. Unfortunately, this means we
can't round up in the case of an unaligned lookahead buffer.

Double unfortunately, rounding down after clamping to the block device
size could result in a lookahead of zero for block devices < 32 blocks
large.

The assert in littlefs does catch this case, but rounding down prevents
support for < 32 block devices.

The solution is to simply require a 32-bit aligned buffer with an
assert. This avoids runtime problems while allowing a user to pass
in the correct buffer for < 32 block devices. Rounding up can be
handled at higher API levels.
2017-11-10 10:54:47 -06:00
Christopher Haster 383677f604 Merge commit '3c3b0329d44d44a2d47a28c755658d7f1db6a085' 2017-10-12 20:43:59 -05:00
Christopher Haster 37edc35091 Merge commit '6e99fa9319d17f0aef418ae3989befc04ecf9096' into new-update 2017-09-26 20:09:57 -05:00
Christopher Haster 2e9f87d435 Updated littlefs to '76d00eb38cddfcc267f323c470142b9f4588d3ff' 2017-07-23 14:11:24 -05:00
Christopher Haster c9062594b5 Merge commit '98af79f087e8d95b28614e982a144a122f2dcbda' as 'littlefs' 2017-07-12 04:44:33 -05:00