docs: Update CN translation for fatfs.rst

This commit is contained in:
Shang Zhou 2024-01-15 15:53:34 +08:00 committed by Adam Múdry
parent 8e50d63fea
commit 63f317e4ca
2 changed files with 3 additions and 3 deletions

View File

@ -126,8 +126,7 @@ 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.
#. 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 bit larger (by ``number of sectors used by FAT * sector size``) but also more prone to corruption.
For example::
@ -149,7 +148,7 @@ Usage::
./fatfsparse.py [-h] [--wl-layer {detect,enabled,disabled}] [--verbose] fatfs_image.img
Parameter --verbose prints detailed information from boot sector of the FatFs image to the terminal before folder structure is generated.
Parameter --verbose prints detailed information from boot sector of the FatFs image to the terminal before folder structure is generated.
High-level API Reference
------------------------

View File

@ -126,6 +126,7 @@ FatFs 分区生成器
#. ``PRESERVE_TIME`` 标志 - 可选参数,用户可强制让目标镜像保留源文件夹的时间戳。如果不保留,每个目标镜像的时间戳都将设置为 FATFS 默认初始时间1980 年 1 月 1 日)。
#. ``ONE_FAT`` 标志 - 可选参数,支持生成仅包含单个 FAT文件分配表的 FATFS 卷。与包含两个 FAT 的 FATFS 卷相比,这样做可以拥有相对较大的可用空间(通过 ``FAT 使用的扇区数 * 扇区大小`` 计算),但会增加 FATFS 卷损坏的风险。
例如::