diff options
author | Damien George <damien.p.george@gmail.com> | 2019-08-20 16:52:36 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-09-10 15:14:13 +1000 |
commit | 31de44775c0ed2fa451e578dd0594d13f11459e9 (patch) | |
tree | aaac4aa1c2df9678db7b01be0947924bc5f36aa0 /py/parse.h | |
parent | f9d142523c48af1cb9c83d1dfbc320cb9c2000c6 (diff) |
esp32: Add VFS FAT partition to partitions.csv and mount it as the FS.
This patch uses the newly-added esp32.Partition class to replace the
existing FlashBdev class. Partition objects implement the block protocol
so can be directly mounted via uos.mount(). This has the following
benefits:
- allows the filesystem partition location and size to be specified in
partitions.csv, and overridden by a particular board
- very easily allows to have multiple filesystems by simply adding extra
entries to partitions.csv
- improves efficiency/speed of filesystem operations because the block
device is implemented fully in C
- opens the possibility to have encrypted flash storage (since Partitions
can be encrypted)
Note that this patch is fully backwards compatible: existing filesystems
remain untouched and work with this new code.
Diffstat (limited to 'py/parse.h')
0 files changed, 0 insertions, 0 deletions