We use POSIX calls wrapper to have proper filesystem experience and it supports C++17 filesystem library.
Right now we are able to use 3 file systems:
Curently only the FAT and EXT4 filesystems are used on the mass storage media.
PurePhone uses old MBR partitioning scheme and it has 3 flash partitions:
EXT4 partition is needed to assert minimal to possibly no data loss in unexpected shutdown LFS can be used as an alternative user partition. Currently it is not used by the MuditaOS except internal EEPROM memory.
Pure phone on reboot on option 9 will present itself with 3 partitions via USB, all partitions should be automount.
dmesg or lsblkudisksctl mount -b /dev/sdbX where X is number of block deviceFor LittleFS you will have to use fuse to mount partition. Tool is already build with release and is ready to use:
mkdir mymount./lfsfuse --block_size=32768 /dev/sdX mymount where sdbx is device where you expect LFS partitionudisksctl power-off -b /dev/sdbReliance edge support is considered as WIP. Below are the proposed steps to finish implementation