trussed-dev / trussed-auth

Authentication extension and backend for Trussed
1 stars 3 forks source link

Remove the `dat` folders to save littlefs space #39

Closed sosthene-nitrokey closed 7 months ago

sosthene-nitrokey commented 9 months ago

This PR removes the dat folder used by ClientFilestore that wastes a lot of space on the filesystem.

Depends on https://github.com/Nitrokey/trussed/pull/34

This PR also adds a migrate function that allows moving from the previous layout to the new layout.

The migrate function cannot by itself know if the migration has been done. I would probably have it done by the Admin App, through a "privilegded" syscall, since the admin app is loaded first and can keep track of whether the migration has already been done.

sosthene-nitrokey commented 7 months ago

I made the migration and the removal of the dat folder optional, so this can be merged without staying a pain having to constantly rebase.

sosthene-nitrokey commented 7 months ago

I like that. Will do this. For se050 backend too.