feat(fatfs): Add an option to use 2 FATs (file allocation tables) in FATFS volumes

Should help with redundancy and data corruption when enabled but uses more space.
This commit is contained in:
Adam Múdry
2024-01-15 01:34:02 +01:00
parent 813dbe5526
commit 8e50d63fea
15 changed files with 697 additions and 104 deletions
+2
View File
@@ -126,6 +126,8 @@ The arguments of the function are as follows:
#. flag ``PRESERVE_TIME`` - optionally, users can force preserving the timestamps from the source folder to the target image. Without preserving the time, every timestamp will be set to the FATFS default initial time (1st January 1980).
#. flag ``ONE_FAT`` - optionally, users can still choose to generate a FATFS volume with a single FAT (file allocation table) instead of two. This makes the free space in the FATFS volume a little bit larger (by ``number of sectors used by FAT * sector size``) but also more prone to corruption.
For example::