diff options
author | Christian Taedcke <christian.taedcke@weidmueller.com> | 2023-11-15 13:44:18 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-28 20:10:24 -0500 |
commit | 08f622a12708a0a787c8345532e0b1665b993cab (patch) | |
tree | cb779c9738d596dcb1b5539c10524ff41db372db /fs/cramfs | |
parent | 601d33f31aebf5b76053c501a91a43e0840b1913 (diff) | |
download | u-boot-08f622a12708a0a787c8345532e0b1665b993cab.tar.gz u-boot-08f622a12708a0a787c8345532e0b1665b993cab.tar.bz2 u-boot-08f622a12708a0a787c8345532e0b1665b993cab.zip |
fs: fat: calculate FAT type based on cluster count
This fixes an issue where the FAT type (FAT12, FAT16) is not
correctly detected, e.g. when the BPB field BS_FilSysType contains the
valid value "FAT ".
According to the FAT spec the field BS_FilSysType has only
informational character and does not determine the FAT type.
The logic of this code is based on the linux kernel implementation
from the file fs/fat/inode.c function fat_fill_super().
For details about FAT see http://elm-chan.org/docs/fat_e.html
Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>
Diffstat (limited to 'fs/cramfs')
0 files changed, 0 insertions, 0 deletions