chaos4ever / chaos

The chaos Operating System
https://chaos4ever.github.io/
16 stars 7 forks source link

Bug fix: The FAT server should handle modern FAT16 volumes #111

Closed perlun closed 6 years ago

perlun commented 6 years ago

The number of reserved sectors used to be always 1, but this is no longer the case. The FAT volume we format ourselves with mkdosfs no longer follows this age-old convention, which is mentioned in e.g. the classical FAT: General Overview of On-Disk Format specification by Microsoft. So we must read this value from the BPB instead of just blindly making foolish assumptions.