ed8d8c0c24
- The erased flag in lfsr_rbyd_t uses only a single bit, which is wasteful for a heavily used struct in littlefs. We can use rbyd.off=block_size to indicate the same state for free. Note that when rbyd.off=block_size, we must treat rbyd as unerased anyways. - Improved state handling in rbyd_append/commit when an error occurs. I will be trying to make better use of cleanup gotos to make these functions less unpredictable when an error occurs. Hopefully the state of littlefs after an error can be well-defined in the future. - Fixed sign-mismatch warnings in asserts when compiled outside of the test runner.