朱天龙 (Armink)

Results 447 comments of 朱天龙 (Armink)

Is it possible to directly add POSIX or LIBC file system API support to LFS

Can you confirm that the code on line 784 is executed? https://github.com/armink/FlashDB/blob/91072137d7e9cfe519053c481a266f913d085eeb/src/fdb_tsdb.c#L777-L786

OK, The `FDB_TSDB_CTRL_SET_ROLLOVER` shoud before initialization. Can you change it and try again? ```C case FDB_TSDB_CTRL_SET_ROLLOVER: /* this change MUST before database initialization */ FDB_ASSERT(db->parent.init_ok == false); db->rollover = *(bool...

You can using the ESP8266 demo for test. https://github.com/armink/FlashDB/tree/master/demos/esp8266_spi_flash

> I found that when using FDB_WRITE_GRAN == 1 we need to pack structures sector_hdr_data and log_idx_data > with #pragma pack(push,1) and #pragma pack(pop) on ARM processors in fdb_tsdb.c >...

This is a good suggestion. I think the main work is to add the implementation of `get_prev_tsl_addr` and `get_prev_sector_addr` for reverse iterator.