Commit Graph

17 Commits

Author SHA1 Message Date
H1ghBre4k3r fde55d947e Add TODOs for refactoring according to PR review and refactor ens_fs_write to return error, if entry is not only ones 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 796cf0f089 Fix multiple results of the PR:
- cleanup of sequence number utilites
- dynamic calculation of nvs sectors for fs information
- usage of buffer in ens_fs
- check for max entry size (page size)
- usage of interal entry size, which is always the next larger power of 2 to a given entry size
2021-05-25 18:06:15 +02:00
H1ghBre4k3r 3abbc61757 Storage: Add 3 byte for metadata to record_t and use it in initialization for ens_fs 2021-05-25 18:06:15 +02:00
H1ghBre4k3r e36bfa751a Storage: Adjust record_information correctly when erasing pages and deleting contacts 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 970a42aea8 Use record instead of contact as naming convention 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 36ad239a87 Storage: Remove comment in load_contact 2021-05-25 18:06:15 +02:00
H1ghBre4k3r b3a2a6919b Sequence Numbers: Introduce GET_MASKED_SN macro 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 534a61c471 Add locks for the storage 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 80cba23823 Format ens files and add .clang-format file 2021-05-25 18:06:15 +02:00
H1ghBre4k3r b2d89d5d03 Implement error codes and use them throughout ens_fs 2021-05-25 18:06:15 +02:00
H1ghBre4k3r c8607507b7 Use record_t for storing contacts 2021-05-25 18:06:15 +02:00
H1ghBre4k3r ca35b6a82c Delete page before incrementing sn 2021-05-25 18:06:15 +02:00
H1ghBre4k3r c4f035246b Store contacts in ens_fs 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 30dc3c31eb Init ens_fs in storage.c 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 725259cfce Use NVS to store storage information 2021-05-25 18:06:15 +02:00
H1ghBre4k3r cfa29284a3 Move sequence-number utils to ens folder aswell 2021-05-25 18:06:15 +02:00
H1ghBre4k3r d38996a021 Implement ens_fs and move ens stuff to ens directory 2021-05-25 18:06:15 +02:00