altos: Round selected log size down to ao_storage_block multiple
authorKeith Packard <keithp@keithp.com>
Tue, 9 Jun 2020 04:03:31 +0000 (21:03 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 9 Jun 2020 04:17:55 +0000 (21:17 -0700)
commit89726f5b1adceb243c5e2d5c958fc13c10f9a2d0
tree9a1bbd03c82e95af60a4eec3b6de6bcb53178423
parent936eceded2d08f4eb7318b28bd1be6cd3b06a7b3
altos: Round selected log size down to ao_storage_block multiple

There was some (broken) code that complained if the value set wasn't
correct, that has been replaced by code that accepts any value and
just rounds it down to a multiple of ao_storage_block. The code also
stops complaining when set to the current value when storage isn't
empty.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_config.c