Files
TencentOS-tiny/components/fs/kv/tos_kv.c
daishengdong 427b13d14a bugfix for kv workspace locate
if only one fresh block left when kv_init, we should not just locate the workspace to this fresh one, otherwise we probably get a KV_ERR_NO_WRITEABLE_BLK in kv_init next time(if we write something to this workspace). We try a gc here to locate workspace to an inuse block rather than the fresh.
2021-09-06 13:06:31 +08:00

41 KiB