Re: [PATCH v2] fat: stop reading directory entries past the end-of-directory marker

From: Matteo Croce

Date: Wed Jun 10 2026 - 07:03:28 EST


Il giorno mer 10 giu 2026 alle ore 08:32 OGAWA Hirofumi
<hirofumi@xxxxxxxxxxxxxxxxxx> ha scritto:
> Although this doesn't catch all cases, if it found the corruption, maybe
> we should make FS read-only (fat_fs_error()), and return -EIO error? Is
> there the reason to allow continue to write?
>

Makes sense. The most common use case right now is to mount Lenovo
BIOS update images, which is perfectly fine to have mounted RO anyway.

Regards,
--
Matteo Croce

perl -e 'for($t=0;;$t++){print chr($t*($t>>8|$t>>13)&255)}' |aplay