Files
EDK2-fork/FatPkg
Oliver Smith-Denny 3ef6a71ed1 FatPkg: Check BlockIo Device Has Supported BlockSize
Per the FAT spec, FAT32 supports block sizes of 512B, 1KB, 2KB, or 4KB.
This patch adds a check to the FAT driver initialization to ensure that
the underlying BlockIo device supports one of those block sizes and fails
initialization otherwise. The underlying BlockIo blocksize is used when
we flush the FatDiskCache back to disk and if the block size is an
unsupported size, we could cause file corruption.

Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
2024-09-23 16:50:39 +00:00
..
2024-09-13 03:58:46 +00:00